error: variant `Variant1` is never constructed --> $DIR/unused-variant.rs:5:5 | LL | enum Enum { | ---- variant in this enum LL | Variant1, | ^^^^^^^^ | = note: `Enum` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis note: the lint level is defined here --> $DIR/unused-variant.rs:1:9 | LL | #![deny(dead_code)] | ^^^^^^^^^ error: aborting due to previous error