2022-06-09 22:14:24 -05:00
|
|
|
error: field `b` is never read
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-lint-dead-code.rs:8:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-06-09 22:14:24 -05:00
|
|
|
LL | union Foo {
|
|
|
|
| --- field in this union
|
|
|
|
LL | x: usize,
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | b: bool,
|
2022-06-22 13:33:59 -05:00
|
|
|
| ^
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2021-05-13 09:42:25 -05:00
|
|
|
--> $DIR/union-lint-dead-code.rs:4:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|