summaryrefslogtreecommitdiff
path: root/tests/ui/pub/pub-ident-struct-4.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/pub/pub-ident-struct-4.fixed')
-rw-r--r--tests/ui/pub/pub-ident-struct-4.fixed3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/ui/pub/pub-ident-struct-4.fixed b/tests/ui/pub/pub-ident-struct-4.fixed
index a62ece43ece..5fedbb72437 100644
--- a/tests/ui/pub/pub-ident-struct-4.fixed
+++ b/tests/ui/pub/pub-ident-struct-4.fixed
@@ -1,7 +1,6 @@
//@ run-rustfix
-#[allow(dead_code)]
-pub struct T(String);
+pub struct T(#[allow(dead_code)] String);
//~^ ERROR missing `struct` for struct definition
fn main() {}