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