]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / invalid-attribute.stderr
index 76d9e2d8205b74305431fd218a94718c4ec34638..136cd763b05c17865c12c4dddfa96e67503d714c 100644 (file)
@@ -4,7 +4,7 @@ error: malformed `non_exhaustive` attribute input
 LL | #[non_exhaustive(anything)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[non_exhaustive]`
 
-error[E0701]: attribute can only be applied to a struct or enum
+error[E0701]: attribute should be applied to a struct or enum
   --> $DIR/invalid-attribute.rs:5:1
    |
 LL | #[non_exhaustive]
@@ -13,7 +13,7 @@ LL |
 LL | trait Bar { }
    | ------------- not a struct or enum
 
-error[E0701]: attribute can only be applied to a struct or enum
+error[E0701]: attribute should be applied to a struct or enum
   --> $DIR/invalid-attribute.rs:9:1
    |
 LL |   #[non_exhaustive]