about summary refs log tree commit diff
path: root/tests/ui/pub/pub-ident-struct-4.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pub/pub-ident-struct-4.rs')
-rw-r--r--tests/ui/pub/pub-ident-struct-4.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/pub/pub-ident-struct-4.rs b/tests/ui/pub/pub-ident-struct-4.rs
index 20bc94b0acb..971f39a8ce1 100644
--- a/tests/ui/pub/pub-ident-struct-4.rs
+++ b/tests/ui/pub/pub-ident-struct-4.rs
@@ -1,6 +1,6 @@
 // run-rustfix
 
-pub T(String);
+pub T(#[allow(dead_code)] String);
 //~^ ERROR missing `struct` for struct definition
 
 fn main() {}