11error: 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
33 |
44LL | / struct RarelyUseful {
55LL | | field: i32,
@@ -11,7 +11,7 @@ LL | | }
1111 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
1212
1313error: 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
1515 |
1616LL | / struct OnlyField {
1717LL | | first_and_last: [usize; 0],
@@ -21,7 +21,7 @@ LL | | }
2121 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
2222
2323error: 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
2525 |
2626LL | / struct GenericArrayType<T> {
2727LL | | field: i32,
@@ -32,7 +32,7 @@ LL | | }
3232 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
3333
3434error: 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
3636 |
3737LL | / #[must_use]
3838LL | | struct OnlyAnotherAttributeMustUse {
@@ -44,7 +44,7 @@ LL | | }
4444 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
4545
4646error: 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
4848 |
4949LL | / struct OnlyAnotherAttributeDerive {
5050LL | | field: i32,
@@ -55,7 +55,7 @@ LL | | }
5555 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
5656
5757error: 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
5959 |
6060LL | / struct ZeroSizedWithConst {
6161LL | | field: i32,
@@ -66,7 +66,7 @@ LL | | }
6666 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
6767
6868error: 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
7070 |
7171LL | / struct ZeroSizedWithConstFunction {
7272LL | | field: i32,
@@ -77,7 +77,23 @@ LL | | }
7777 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
7878
7979error: 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
8197 |
8298LL | / struct LotsOfFields {
8399LL | | f1: u32,
@@ -90,5 +106,5 @@ LL | | }
90106 |
91107 = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
92108
93- error: aborting due to 8 previous errors
109+ error: aborting due to 10 previous errors
94110
0 commit comments