We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e41dcd commit 53543dbCopy full SHA for 53543db
tests/ui/symbol-names/struct-constructor-mangling.rs
@@ -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
+
4
//@ run-pass
5
6
fn size_of_val<T>(_: &T) -> usize {
@@ -6,8 +9,6 @@ fn size_of_val<T>(_: &T) -> usize {
9
7
10
struct Foo(#[allow(dead_code)] i64);
8
11
-// 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.
12
fn main() {
13
size_of_val(&Foo(0));
14
size_of_val(&Foo);
0 commit comments