]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.stderr
Reword malformed attribute input diagnostics
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / invalid-attribute.stderr
index ff082e6fc429ed78584d6d48a49b700665bcf3e4..21dc340d21204b42663689a90f4d039763b1c90f 100644 (file)
@@ -1,8 +1,8 @@
-error: attribute must be of the form `#[non_exhaustive]`
+error: malformed `non_exhaustive` attribute input
   --> $DIR/invalid-attribute.rs:3:1
    |
 LL | #[non_exhaustive(anything)]
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[non_exhaustive]`
 
 error[E0701]: attribute can only be applied to a struct or enum
   --> $DIR/invalid-attribute.rs:7:1