]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/feature-gate/issue-43106-gating-of-builtin-attrs.rs
feature error span on attr. for fn_must_use, SIMD/align, macro reƫxport
[rust.git] / src / test / compile-fail / feature-gate / issue-43106-gating-of-builtin-attrs.rs
index 204190d64acc1f61a33a02b7e02a510c52ce464d..6eec1779a2d87d689e5370e1ad3597af3f4ee022 100644 (file)
@@ -354,8 +354,7 @@ mod inner { #![repr="3900"] }
     #[repr = "3900"] fn f() { }
     //~^ WARN unused attribute
 
-    #[repr = "3900"] struct S;
-    //~^ WARN unused attribute
+    struct S;
 
     #[repr = "3900"] type T = S;
     //~^ WARN unused attribute