]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error: field `c` is never read |
136023e0 | 2 | --> $DIR/union-fields-1.rs:9:5 |
ff7c6d11 | 3 | | |
923072b8 FG |
4 | LL | union U1 { |
5 | | -- field in this union | |
6 | ... | |
532ac7d7 | 7 | LL | c: u8, |
ff7c6d11 XL |
8 | | ^^^^^ |
9 | | | |
74b04a01 | 10 | note: the lint level is defined here |
136023e0 | 11 | --> $DIR/union-fields-1.rs:4:9 |
ff7c6d11 | 12 | | |
0531ce1d | 13 | LL | #![deny(dead_code)] |
ff7c6d11 XL |
14 | | ^^^^^^^^^ |
15 | ||
923072b8 | 16 | error: field `a` is never read |
136023e0 | 17 | --> $DIR/union-fields-1.rs:12:5 |
ff7c6d11 | 18 | | |
923072b8 FG |
19 | LL | union U2 { |
20 | | -- field in this union | |
532ac7d7 | 21 | LL | a: u8, |
ff7c6d11 XL |
22 | | ^^^^^ |
23 | ||
923072b8 | 24 | error: field `a` is never read |
136023e0 | 25 | --> $DIR/union-fields-1.rs:16:20 |
ff7c6d11 | 26 | | |
532ac7d7 | 27 | LL | union NoDropLike { a: u8 } |
923072b8 FG |
28 | | ---------- ^^^^^ |
29 | | | | |
30 | | field in this union | |
ff7c6d11 | 31 | |
923072b8 | 32 | error: field `c` is never read |
136023e0 | 33 | --> $DIR/union-fields-1.rs:21:5 |
ff7c6d11 | 34 | | |
923072b8 FG |
35 | LL | union U { |
36 | | - field in this union | |
37 | ... | |
532ac7d7 | 38 | LL | c: u8, |
ff7c6d11 XL |
39 | | ^^^^^ |
40 | ||
41 | error: aborting due to 4 previous errors | |
42 |