diff options
| author | Kivooeo <Kivooeo123@gmail.com> | 2025-07-14 02:19:24 +0500 |
|---|---|---|
| committer | Kivooeo <Kivooeo123@gmail.com> | 2025-07-17 15:51:32 +0500 |
| commit | c0597fbd80acdc23434ed8f59c41f0728a2d9ba6 (patch) | |
| tree | 12196fed39f67f6cb65205c3ba3adaf7cee74115 /tests/ui/symbol-names/struct-constructor-mangling.rs | |
| parent | b7d024b05622702df0b8f0eb7d67c9e7b534b9ea (diff) | |
| download | rust-c0597fbd80acdc23434ed8f59c41f0728a2d9ba6.tar.gz rust-c0597fbd80acdc23434ed8f59c41f0728a2d9ba6.zip | |
cleaned up some tests
Reverting file name weird-exprs.rs due to its historical use, recognition in community and references
Diffstat (limited to 'tests/ui/symbol-names/struct-constructor-mangling.rs')
| -rw-r--r-- | tests/ui/symbol-names/struct-constructor-mangling.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/symbol-names/struct-constructor-mangling.rs b/tests/ui/symbol-names/struct-constructor-mangling.rs index f32cbb7aaae..ec8791e2154 100644 --- a/tests/ui/symbol-names/struct-constructor-mangling.rs +++ b/tests/ui/symbol-names/struct-constructor-mangling.rs @@ -1,3 +1,5 @@ +//! Test that the symbol mangling of Foo-the-constructor-function versus Foo-the-type do not collide + //@ run-pass fn size_of_val<T>(_: &T) -> usize { @@ -6,8 +8,6 @@ fn size_of_val<T>(_: &T) -> usize { struct Foo(#[allow(dead_code)] i64); -// Test that the (symbol) mangling of `Foo` (the `struct` type) and that of -// `typeof Foo` (the function type of the `struct` constructor) don't collide. fn main() { size_of_val(&Foo(0)); size_of_val(&Foo); |
