about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/trailing_zero_sized_array_without_repr_c.stderr110
1 files changed, 0 insertions, 110 deletions
diff --git a/tests/ui/trailing_zero_sized_array_without_repr_c.stderr b/tests/ui/trailing_zero_sized_array_without_repr_c.stderr
deleted file mode 100644
index 5ed91e937d5..00000000000
--- a/tests/ui/trailing_zero_sized_array_without_repr_c.stderr
+++ /dev/null
@@ -1,110 +0,0 @@
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:6:1
-   |
-LL | / struct RarelyUseful {
-LL | |     field: i32,
-LL | |     last: [usize; 0],
-LL | | }
-   | |_^
-   |
-   = note: `-D clippy::trailing-zero-sized-array-without-repr-c` implied by `-D warnings`
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:11:1
-   |
-LL | / struct OnlyField {
-LL | |     first_and_last: [usize; 0],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:15:1
-   |
-LL | / struct GenericArrayType<T> {
-LL | |     field: i32,
-LL | |     last: [T; 0],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:20:1
-   |
-LL | / #[must_use]
-LL | | struct OnlyAnotherAttributeMustUse {
-LL | |     field: i32,
-LL | |     last: [usize; 0],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:29:1
-   |
-LL | / struct OnlyAnotherAttributeDerive {
-LL | |     field: i32,
-LL | |     last: [usize; 0],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:35:1
-   |
-LL | / struct ZeroSizedWithConst {
-LL | |     field: i32,
-LL | |     last: [usize; ZERO],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:44:1
-   |
-LL | / struct ZeroSizedWithConstFunction {
-LL | |     field: i32,
-LL | |     last: [usize; compute_zero()],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:49:1
-   |
-LL | struct ZeroSizedArrayWrapper([usize; 0]);
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:51:1
-   |
-LL | struct TupleStruct(i32, [usize; 0]);
-   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: trailing zero-sized array in a struct which is not marked `#[repr(C)]`
-  --> $DIR/trailing_zero_sized_array_without_repr_c.rs:53:1
-   |
-LL | / struct LotsOfFields {
-LL | |     f1: u32,
-LL | |     f2: u32,
-LL | |     f3: u32,
-...  |
-LL | |     last: [usize; 0],
-LL | | }
-   | |_^
-   |
-   = help: consider annotating the struct definition with `#[repr(C)]` (or another `repr` attribute)
-
-error: aborting due to 10 previous errors
-