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