error: variant is never constructed: `Bar` --> $DIR/lint-dead-code-unused-variant.rs:8:5 | LL | Bar(B), | ^^^^^^ | note: lint level defined here --> $DIR/lint-dead-code-unused-variant.rs:1:9 | LL | #![deny(unused)] | ^^^^^^ = note: `#[deny(dead_code)]` implied by `#[deny(unused)]` error: aborting due to previous error