]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/default_union_representation.stderr
Auto merge of #93397 - joshtriplett:sort-floats, r=Amanieu
[rust.git] / src / tools / clippy / tests / ui / default_union_representation.stderr
1 error: this union has the default representation
2   --> $DIR/default_union_representation.rs:4:1
3    |
4 LL | / union NoAttribute {
5 LL | |     a: i32,
6 LL | |     b: u32,
7 LL | | }
8    | |_^
9    |
10    = note: `-D clippy::default-union-representation` implied by `-D warnings`
11    = help: consider annotating `NoAttribute` with `#[repr(C)]` to explicitly specify memory layout
12
13 error: this union has the default representation
14   --> $DIR/default_union_representation.rs:16:1
15    |
16 LL | / union ReprPacked {
17 LL | |     a: i32,
18 LL | |     b: u32,
19 LL | | }
20    | |_^
21    |
22    = help: consider annotating `ReprPacked` with `#[repr(C)]` to explicitly specify memory layout
23
24 error: this union has the default representation
25   --> $DIR/default_union_representation.rs:34:1
26    |
27 LL | / union ReprAlign {
28 LL | |     a: i32,
29 LL | |     b: u32,
30 LL | | }
31    | |_^
32    |
33    = help: consider annotating `ReprAlign` with `#[repr(C)]` to explicitly specify memory layout
34
35 error: this union has the default representation
36   --> $DIR/default_union_representation.rs:54:1
37    |
38 LL | / union ZSTAndTwoFields {
39 LL | |     f0: u32,
40 LL | |     f1: u64,
41 LL | |     f2: (),
42 LL | | }
43    | |_^
44    |
45    = help: consider annotating `ZSTAndTwoFields` with `#[repr(C)]` to explicitly specify memory layout
46
47 error: aborting due to 4 previous errors
48