]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/struct-ctor-mangling.rs
Rollup merge of #99479 - Enselic:import-can-be-without-id, r=camelid
[rust.git] / src / test / ui / struct-ctor-mangling.rs
index f242cb8457f997b01586d532fea5343098337043..ba6abbf03a539f6d15cc1f4052389b636398b13a 100644 (file)
@@ -4,7 +4,7 @@ fn size_of_val<T>(_: &T) -> usize {
     std::mem::size_of::<T>()
 }
 
-struct Foo(i64);
+struct Foo(#[allow(unused_tuple_struct_fields)] 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.