1
1
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
2
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:5 :1
2
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:6 :1
3
3
|
4
4
LL | / struct RarelyUseful {
5
5
LL | | field: i32,
@@ -11,7 +11,7 @@ LL | | }
11
11
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
12
12
13
13
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
14
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:10 :1
14
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:11 :1
15
15
|
16
16
LL | / struct OnlyField {
17
17
LL | | first_and_last: [usize; 0],
@@ -21,7 +21,7 @@ LL | | }
21
21
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
22
22
23
23
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
24
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:14 :1
24
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:15 :1
25
25
|
26
26
LL | / struct GenericArrayType<T> {
27
27
LL | | field: i32,
@@ -32,7 +32,7 @@ LL | | }
32
32
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
33
33
34
34
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
35
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:19 :1
35
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:20 :1
36
36
|
37
37
LL | / #[must_use]
38
38
LL | | struct OnlyAnotherAttributeMustUse {
@@ -44,7 +44,7 @@ LL | | }
44
44
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
45
45
46
46
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
47
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:28 :1
47
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:29 :1
48
48
|
49
49
LL | / struct OnlyAnotherAttributeDerive {
50
50
LL | | field: i32,
@@ -55,7 +55,7 @@ LL | | }
55
55
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
56
56
57
57
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
58
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:34 :1
58
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:35 :1
59
59
|
60
60
LL | / struct ZeroSizedWithConst {
61
61
LL | | field: i32,
@@ -66,7 +66,7 @@ LL | | }
66
66
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
67
67
68
68
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
69
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:43 :1
69
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:44 :1
70
70
|
71
71
LL | / struct ZeroSizedWithConstFunction {
72
72
LL | | field: i32,
@@ -77,7 +77,23 @@ LL | | }
77
77
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
78
78
79
79
error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
80
- --> $DIR/trailing_zero_sized_array_without_repr_c.rs:48:1
80
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:49:1
81
+ |
82
+ LL | struct ZeroSizedArrayWrapper([usize; 0]);
83
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
+ |
85
+ = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
86
+
87
+ error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
88
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:51:1
89
+ |
90
+ LL | struct TupleStruct(i32, [usize; 0]);
91
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
+ |
93
+ = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
94
+
95
+ error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
96
+ --> $DIR/trailing_zero_sized_array_without_repr_c.rs:53:1
81
97
|
82
98
LL | / struct LotsOfFields {
83
99
LL | | f1: u32,
@@ -90,5 +106,5 @@ LL | | }
90
106
|
91
107
= help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
92
108
93
- error: aborting due to 8 previous errors
109
+ error: aborting due to 10 previous errors
94
110
0 commit comments