]> git.lizzy.rs Git - rust.git/blob - src/test/ui/union-fields.stderr
Auto merge of #44060 - taleks:issue-43205, r=arielb1
[rust.git] / src / test / ui / union-fields.stderr
1 error: field is never used: `c`
2   --> $DIR/union-fields.rs:16:5
3    |
4 16 |     c: u8, // should be reported
5    |     ^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/union-fields.rs:11:9
9    |
10 11 | #![deny(dead_code)]
11    |         ^^^^^^^^^
12
13 error: field is never used: `a`
14   --> $DIR/union-fields.rs:19:5
15    |
16 19 |     a: u8, // should be reported
17    |     ^^^^^
18
19 error: field is never used: `a`
20   --> $DIR/union-fields.rs:23:20
21    |
22 23 | union NoDropLike { a: u8 } // should be reported as unused
23    |                    ^^^^^
24
25 error: field is never used: `c`
26   --> $DIR/union-fields.rs:28:5
27    |
28 28 |     c: u8, // should be reported
29    |     ^^^^^
30
31 error: aborting due to 4 previous errors
32