rust/tests/ui/lint/dead-code/unused-variant.stderr

18 lines
463 B
Plaintext
Raw Normal View History

error: variant `Variant1` is never constructed
--> $DIR/unused-variant.rs:5:5
2018-08-08 07:28:26 -05:00
|
LL | enum Enum {
| ---- variant in this enum
2019-03-09 06:03:44 -06:00
LL | Variant1,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^
|
2022-09-18 10:55:36 -05:00
= note: `Enum` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
2020-01-22 17:57:38 -06:00
note: the lint level is defined here
--> $DIR/unused-variant.rs:1:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to previous error