1 error[E0517]: attribute should be applied to struct, enum or union
2 --> $DIR/attr-usage-repr.rs:3:8
4 LL | #[repr(C)] //~ ERROR: attribute should be applied to struct, enum or union
7 | --------- not a struct, enum or union
9 error[E0517]: attribute should be applied to enum
10 --> $DIR/attr-usage-repr.rs:15:8
12 LL | #[repr(i8)] //~ ERROR: attribute should be applied to enum
14 LL | struct SInt(f64, f64);
15 | ---------------------- not an enum
17 error[E0517]: attribute should be applied to struct or union
18 --> $DIR/attr-usage-repr.rs:21:8
20 LL | #[repr(align(8))] //~ ERROR: attribute should be applied to struct
22 LL | enum EAlign { A, B }
23 | -------------------- not a struct or union
25 error[E0517]: attribute should be applied to struct or union
26 --> $DIR/attr-usage-repr.rs:24:8
28 LL | #[repr(packed)] //~ ERROR: attribute should be applied to struct
30 LL | enum EPacked { A, B }
31 | --------------------- not a struct or union
33 error[E0517]: attribute should be applied to struct
34 --> $DIR/attr-usage-repr.rs:27:8
36 LL | #[repr(simd)] //~ ERROR: attribute should be applied to struct
38 LL | enum ESimd { A, B }
39 | ------------------- not a struct
41 error: aborting due to 5 previous errors
43 For more information about this error, try `rustc --explain E0517`.