]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-31769.rs
Implement RFC 2645 (transparent enums and unions)
[rust.git] / src / test / ui / issues / issue-31769.rs
index 794c1d19893885c299c32f9ee7e4a310a4c359ba..45eb5e4008089c2ea6206109ac4d59159c466a48 100644 (file)
@@ -1,4 +1,4 @@
 fn main() {
     #[inline] struct Foo;  //~ ERROR attribute should be applied to function or closure
-    #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum or union
+    #[repr(C)] fn foo() {} //~ ERROR attribute should be applied to struct, enum, or union
 }