rust/tests/ui/union/union-lint-dead-code.thirunsafeck.stderr
2023-01-11 09:32:08 +00:00

18 lines
349 B
Plaintext

error: field `b` is never read
--> $DIR/union-lint-dead-code.rs:8: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:4:9
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to previous error