2022-06-09 22:14:24 -05:00
|
|
|
error: variant `Variant1` is never constructed
|
2019-10-24 23:42:05 -05:00
|
|
|
--> $DIR/unused-variant.rs:5:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2022-06-09 22:14:24 -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
|
2019-10-24 23:42:05 -05:00
|
|
|
--> $DIR/unused-variant.rs:1:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|