mirror of https://github.com/rust-lang/rust
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
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: variant `Variant1` is never constructed
|
|
--> $DIR/unused-variant.rs:11:5
|
|
|
|
|
LL | enum TupleVariant {
|
|
| ------------ variant in this enum
|
|
LL | Variant1(i32),
|
|
| ^^^^^^^^
|
|
|
|
|
= note: `TupleVariant` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
|
|
|
error: variant `Variant1` is never constructed
|
|
--> $DIR/unused-variant.rs:17:5
|
|
|
|
|
LL | enum StructVariant {
|
|
| ------------- variant in this enum
|
|
LL | Variant1 { id: i32 },
|
|
| ^^^^^^^^
|
|
|
|
|
= note: `StructVariant` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
|
|
|
|
error: aborting due to 3 previous errors
|
|
|