fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 2 --> $DIR/trailing_empty_array.rs:5:1 3 | 4LL | / struct RarelyUseful { 5LL | | 6LL | | field: i32, 7LL | | last: [usize; 0], 8LL | | } 9 | |_^ 10 | 11 = help: consider annotating `RarelyUseful` with `#[repr(C)]` or another `repr` attribute 12 = note: `-D clippy::trailing-empty-array` implied by `-D warnings` 13 = help: to override `-D warnings` add `#[allow(clippy::trailing_empty_array)]` 14 15error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 16 --> $DIR/trailing_empty_array.rs:11:1 17 | 18LL | / struct OnlyField { 19LL | | 20LL | | first_and_last: [usize; 0], 21LL | | } 22 | |_^ 23 | 24 = help: consider annotating `OnlyField` with `#[repr(C)]` or another `repr` attribute 25 26error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 27 --> $DIR/trailing_empty_array.rs:16:1 28 | 29LL | / struct GenericArrayType<T> { 30LL | | 31LL | | field: i32, 32LL | | last: [T; 0], 33LL | | } 34 | |_^ 35 | 36 = help: consider annotating `GenericArrayType` with `#[repr(C)]` or another `repr` attribute 37 38error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 39 --> $DIR/trailing_empty_array.rs:23:1 40 | 41LL | / struct OnlyAnotherAttribute { 42LL | | 43LL | | field: i32, 44LL | | last: [usize; 0], 45LL | | } 46 | |_^ 47 | 48 = help: consider annotating `OnlyAnotherAttribute` with `#[repr(C)]` or another `repr` attribute 49 50error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 51 --> $DIR/trailing_empty_array.rs:30:1 52 | 53LL | / struct OnlyADeriveAttribute { 54LL | | 55LL | | field: i32, 56LL | | last: [usize; 0], 57LL | | } 58 | |_^ 59 | 60 = help: consider annotating `OnlyADeriveAttribute` with `#[repr(C)]` or another `repr` attribute 61 62error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 63 --> $DIR/trailing_empty_array.rs:37:1 64 | 65LL | / struct ZeroSizedWithConst { 66LL | | 67LL | | field: i32, 68LL | | last: [usize; ZERO], 69LL | | } 70 | |_^ 71 | 72 = help: consider annotating `ZeroSizedWithConst` with `#[repr(C)]` or another `repr` attribute 73 74error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 75 --> $DIR/trailing_empty_array.rs:47:1 76 | 77LL | / struct ZeroSizedWithConstFunction { 78LL | | 79LL | | field: i32, 80LL | | last: [usize; compute_zero()], 81LL | | } 82 | |_^ 83 | 84 = help: consider annotating `ZeroSizedWithConstFunction` with `#[repr(C)]` or another `repr` attribute 85 86error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 87 --> $DIR/trailing_empty_array.rs:56:1 88 | 89LL | / struct ZeroSizedWithConstFunction2 { 90LL | | 91LL | | field: i32, 92LL | | last: [usize; compute_zero_from_arg(1)], 93LL | | } 94 | |_^ 95 | 96 = help: consider annotating `ZeroSizedWithConstFunction2` with `#[repr(C)]` or another `repr` attribute 97 98error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 99 --> $DIR/trailing_empty_array.rs:62:1 100 | 101LL | struct ZeroSizedArrayWrapper([usize; 0]); 102 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 103 | 104 = help: consider annotating `ZeroSizedArrayWrapper` with `#[repr(C)]` or another `repr` attribute 105 106error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 107 --> $DIR/trailing_empty_array.rs:65:1 108 | 109LL | struct TupleStruct(i32, [usize; 0]); 110 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 111 | 112 = help: consider annotating `TupleStruct` with `#[repr(C)]` or another `repr` attribute 113 114error: trailing zero-sized array in a struct which is not marked with a `repr` attribute 115 --> $DIR/trailing_empty_array.rs:68:1 116 | 117LL | / struct LotsOfFields { 118LL | | 119LL | | f1: u32, 120LL | | f2: u32, 121... | 122LL | | last: [usize; 0], 123LL | | } 124 | |_^ 125 | 126 = help: consider annotating `LotsOfFields` with `#[repr(C)]` or another `repr` attribute 127 128error: aborting due to 11 previous errors 129