Skip to content

Commit 53543db

Browse files
committed
struct-ctor-mangling.rs
1 parent 1e41dcd commit 53543db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ui/symbol-names/struct-constructor-mangling.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! Test that the (symbol) mangling of `Foo` (the `struct` type) and that of
2+
//! `typeof Foo` (the function type of the `struct` constructor) don't collide.
3+
14
//@ run-pass
25

36
fn size_of_val<T>(_: &T) -> usize {
@@ -6,8 +9,6 @@ fn size_of_val<T>(_: &T) -> usize {
69

710
struct Foo(#[allow(dead_code)] i64);
811

9-
// Test that the (symbol) mangling of `Foo` (the `struct` type) and that of
10-
// `typeof Foo` (the function type of the `struct` constructor) don't collide.
1112
fn main() {
1213
size_of_val(&Foo(0));
1314
size_of_val(&Foo);

0 commit comments

Comments
 (0)