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