fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this union has the default representation 2 --> $DIR/default_union_representation.rs:4:1 3 | 4LL | / union NoAttribute { 5LL | | 6LL | | a: i32, 7LL | | b: u32, 8LL | | } 9 | |_^ 10 | 11 = help: consider annotating `NoAttribute` with `#[repr(C)]` to explicitly specify memory layout 12 = note: `-D clippy::default-union-representation` implied by `-D warnings` 13 = help: to override `-D warnings` add `#[allow(clippy::default_union_representation)]` 14 15error: this union has the default representation 16 --> $DIR/default_union_representation.rs:17:1 17 | 18LL | / union ReprPacked { 19LL | | 20LL | | a: i32, 21LL | | b: u32, 22LL | | } 23 | |_^ 24 | 25 = help: consider annotating `ReprPacked` with `#[repr(C)]` to explicitly specify memory layout 26 27error: this union has the default representation 28 --> $DIR/default_union_representation.rs:36:1 29 | 30LL | / union ReprAlign { 31LL | | 32LL | | a: i32, 33LL | | b: u32, 34LL | | } 35 | |_^ 36 | 37 = help: consider annotating `ReprAlign` with `#[repr(C)]` to explicitly specify memory layout 38 39error: this union has the default representation 40 --> $DIR/default_union_representation.rs:57:1 41 | 42LL | / union ZSTAndTwoFields { 43LL | | 44LL | | f0: u32, 45LL | | f1: u64, 46LL | | f2: (), 47LL | | } 48 | |_^ 49 | 50 = help: consider annotating `ZSTAndTwoFields` with `#[repr(C)]` to explicitly specify memory layout 51 52error: aborting due to 4 previous errors 53