fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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