]> git.lizzy.rs Git - rust.git/blob - tests/ui/union/union-fields-1.mirunsafeck.stderr
add (currently ICEing) test
[rust.git] / tests / ui / union / union-fields-1.mirunsafeck.stderr
1 error: field `c` is never read
2   --> $DIR/union-fields-1.rs:9:5
3    |
4 LL | union U1 {
5    |       -- field in this union
6 ...
7 LL |     c: u8,
8    |     ^
9    |
10 note: the lint level is defined here
11   --> $DIR/union-fields-1.rs:4:9
12    |
13 LL | #![deny(dead_code)]
14    |         ^^^^^^^^^
15
16 error: field `a` is never read
17   --> $DIR/union-fields-1.rs:12:5
18    |
19 LL | union U2 {
20    |       -- field in this union
21 LL |     a: u8,
22    |     ^
23
24 error: field `a` is never read
25   --> $DIR/union-fields-1.rs:16:20
26    |
27 LL | union NoDropLike { a: u8 }
28    |       ----------   ^
29    |       |
30    |       field in this union
31
32 error: field `c` is never read
33   --> $DIR/union-fields-1.rs:21:5
34    |
35 LL | union U {
36    |       - field in this union
37 ...
38 LL |     c: u8,
39    |     ^
40
41 error: aborting due to 4 previous errors
42