41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
18 lines
465 B
Plaintext
18 lines
465 B
Plaintext
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 1 previous error
|
|
|