blob: 691a5e19ae6b9641a86db602026e9df5983bda53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
error: field `b` is never read
--> $DIR/union-lint-dead-code.rs:5:5
|
LL | union Foo {
| --- field in this union
LL | x: usize,
LL | b: bool,
| ^
|
note: the lint level is defined here
--> $DIR/union-lint-dead-code.rs:1:9
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to 1 previous error
|