1 error[E0517]: attribute should be applied to struct, enum or union
4 LL | #[repr(C)] //~ ERROR: E0517
7 | -------------- not a struct, enum or union
9 error[E0517]: attribute should be applied to struct or union
10 --> $DIR/E0517.rs:14:8
12 LL | #[repr(packed)] //~ ERROR: E0517
14 LL | enum Foo2 {Bar, Baz}
15 | -------------------- not a struct or union
17 error[E0517]: attribute should be applied to enum
18 --> $DIR/E0517.rs:17:8
20 LL | #[repr(u8)] //~ ERROR: E0517
22 LL | struct Foo3 {bar: bool, baz: bool}
23 | ---------------------------------- not an enum
25 error[E0517]: attribute should be applied to struct, enum or union
26 --> $DIR/E0517.rs:20:8
28 LL | #[repr(C)] //~ ERROR: E0517
32 | |_- not a struct, enum or union
34 error: aborting due to 4 previous errors
36 For more information about this error, try `rustc --explain E0517`.