1
1
error[E0517]: attribute should be applied to a struct, enum, or union
2
- --> $DIR/naked-with-invalid-repr-attr.rs:6 :8
2
+ --> $DIR/naked-with-invalid-repr-attr.rs:5 :8
3
3
|
4
4
LL | #[repr(C)]
5
5
| ^
@@ -11,7 +11,7 @@ LL | | }
11
11
| |_- not a struct, enum, or union
12
12
13
13
error[E0517]: attribute should be applied to a struct, enum, or union
14
- --> $DIR/naked-with-invalid-repr-attr.rs:14 :8
14
+ --> $DIR/naked-with-invalid-repr-attr.rs:13 :8
15
15
|
16
16
LL | #[repr(transparent)]
17
17
| ^^^^^^^^^^^
@@ -23,7 +23,7 @@ LL | | }
23
23
| |_- not a struct, enum, or union
24
24
25
25
error[E0517]: attribute should be applied to a struct, enum, or union
26
- --> $DIR/naked-with-invalid-repr-attr.rs:22 :19
26
+ --> $DIR/naked-with-invalid-repr-attr.rs:21 :19
27
27
|
28
28
LL | #[repr(align(16), C)]
29
29
| ^
@@ -35,7 +35,7 @@ LL | | }
35
35
| |_- not a struct, enum, or union
36
36
37
37
error[E0517]: attribute should be applied to a struct, enum, or union
38
- --> $DIR/naked-with-invalid-repr-attr.rs:31 :8
38
+ --> $DIR/naked-with-invalid-repr-attr.rs:30 :8
39
39
|
40
40
LL | #[repr(C, packed)]
41
41
| ^
@@ -48,7 +48,7 @@ LL | | }
48
48
| |_- not a struct, enum, or union
49
49
50
50
error[E0517]: attribute should be applied to a struct or union
51
- --> $DIR/naked-with-invalid-repr-attr.rs:31 :11
51
+ --> $DIR/naked-with-invalid-repr-attr.rs:30 :11
52
52
|
53
53
LL | #[repr(C, packed)]
54
54
| ^^^^^^
@@ -61,7 +61,7 @@ LL | | }
61
61
| |_- not a struct or union
62
62
63
63
error[E0517]: attribute should be applied to an enum
64
- --> $DIR/naked-with-invalid-repr-attr.rs:41 :8
64
+ --> $DIR/naked-with-invalid-repr-attr.rs:40 :8
65
65
|
66
66
LL | #[repr(u8)]
67
67
| ^^
0 commit comments