]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2008-non-exhaustive/invalid-attribute.rs
parser will not give wrong help message for 'public'
[rust.git] / src / test / ui / rfc-2008-non-exhaustive / invalid-attribute.rs
index 3c4a09fafd2dbc8360979d6d74b91f6d7739a9a0..143f9a3009b6171846dcd3e1715c9e694deaafc1 100644 (file)
@@ -3,11 +3,11 @@
 struct Foo;
 
 #[non_exhaustive]
-//~^ ERROR attribute can only be applied to a struct or enum [E0701]
+//~^ ERROR attribute should be applied to a struct or enum [E0701]
 trait Bar { }
 
 #[non_exhaustive]
-//~^ ERROR attribute can only be applied to a struct or enum [E0701]
+//~^ ERROR attribute should be applied to a struct or enum [E0701]
 union Baz {
     f1: u16,
     f2: u16