mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
351 B
Plaintext
18 lines
351 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 1 previous error
|
|
|