]> 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 29a2b0609fcd2dd368cede7d473fcf592448c9c5..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
@@ -680,6 +679,7 @@ mod must_use {
     mod inner { #![must_use="1400"] }
 
     #[must_use = "1400"] fn f() { }
+    //~^ WARN `#[must_use]` on functions is experimental
 
     #[must_use = "1400"] struct S;