We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5702e02 commit 97867bbCopy full SHA for 97867bb
src/test/ui/issues/issue-74082.rs
@@ -0,0 +1,9 @@
1
+#![allow(dead_code)]
2
+
3
+#[repr(i128)] //~ ERROR: attribute should be applied to enum
4
+struct Foo;
5
6
+#[repr(u128)] //~ ERROR: attribute should be applied to enum
7
+struct Bar;
8
9
+fn main() {}
src/test/ui/issues/issue-74082.stderr
@@ -0,0 +1,19 @@
+error[E0517]: attribute should be applied to enum
+ --> $DIR/issue-74082.rs:3:8
+ |
+LL | #[repr(i128)]
+ | ^^^^
+LL | struct Foo;
+ | ----------- not an enum
10
+ --> $DIR/issue-74082.rs:6:8
11
12
+LL | #[repr(u128)]
13
14
+LL | struct Bar;
15
16
17
+error: aborting due to 2 previous errors
18
19
+For more information about this error, try `rustc --explain E0517`.
0 commit comments