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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
463 B
Plaintext
Raw Normal View History

error: variant `Variant1` is never constructed
--> $DIR/unused-variant.rs:5:5
2018-08-08 14:28:26 +02: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
--> $DIR/unused-variant.rs:1:9
2018-08-08 14:28:26 +02:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: aborting due to previous error