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