mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
35 lines
748 B
Plaintext
35 lines
748 B
Plaintext
error: variant `Variant2` is never constructed
|
|
--> $DIR/lint-dead-code-5.rs:6:5
|
|
|
|
|
LL | enum Enum1 {
|
|
| ----- variant in this enum
|
|
LL | Variant1(isize),
|
|
LL | Variant2
|
|
| ^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-dead-code-5.rs:2:9
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
| ^^^^^^^^^
|
|
|
|
error: variants `Variant5` and `Variant6` are never constructed
|
|
--> $DIR/lint-dead-code-5.rs:13:5
|
|
|
|
|
LL | enum Enum2 {
|
|
| ----- variants in this enum
|
|
...
|
|
LL | Variant5 { _x: isize },
|
|
| ^^^^^^^^
|
|
LL | Variant6(isize),
|
|
| ^^^^^^^^
|
|
|
|
error: enum `Enum3` is never used
|
|
--> $DIR/lint-dead-code-5.rs:35:6
|
|
|
|
|
LL | enum Enum3 {
|
|
| ^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|