]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/repr.rs
Reword malformed attribute input diagnostics
[rust.git] / src / test / ui / repr.rs
index 9d844745f4299e336d9a84b02e7019f7d03ce737..564d6732601024661009d2de0e6eea59ddebef02 100644 (file)
@@ -1,13 +1,10 @@
-#[repr]
-//~^ ERROR attribute must be of the form
+#[repr] //~ ERROR malformed `repr` attribute
 struct _A {}
 
-#[repr = "B"]
-//~^ ERROR attribute must be of the form
+#[repr = "B"] //~ ERROR malformed `repr` attribute
 struct _B {}
 
-#[repr = "C"]
-//~^ ERROR attribute must be of the form
+#[repr = "C"] //~ ERROR malformed `repr` attribute
 struct _C {}
 
 #[repr(C)]