]> git.lizzy.rs Git - rust.git/blob - src/test/ui/attr-usage-repr.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / attr-usage-repr.stderr
1 error[E0517]: attribute should be applied to a struct, enum, or union
2   --> $DIR/attr-usage-repr.rs:3:8
3    |
4 LL | #[repr(C)]
5    |        ^
6 LL | fn f() {}
7    | --------- not a struct, enum, or union
8
9 error[E0517]: attribute should be applied to an enum
10   --> $DIR/attr-usage-repr.rs:15:8
11    |
12 LL | #[repr(i8)]
13    |        ^^
14 LL | struct SInt(f64, f64);
15    | ---------------------- not an enum
16
17 error[E0517]: attribute should be applied to a struct or union
18   --> $DIR/attr-usage-repr.rs:24:8
19    |
20 LL | #[repr(packed)]
21    |        ^^^^^^
22 LL | enum EPacked { A, B }
23    | --------------------- not a struct or union
24
25 error[E0517]: attribute should be applied to a struct
26   --> $DIR/attr-usage-repr.rs:27:8
27    |
28 LL | #[repr(simd)]
29    |        ^^^^
30 LL | enum ESimd { A, B }
31    | ------------------- not a struct
32
33 error: aborting due to 4 previous errors
34
35 For more information about this error, try `rustc --explain E0517`.