2022-06-10 03:14:24 +00:00
|
|
|
error: variant `Bar` is never constructed
|
2019-10-25 04:42:05 +00:00
|
|
|
--> $DIR/unused-struct-variant.rs:8:5
|
2019-08-21 23:30:11 +00:00
|
|
|
|
|
2022-06-10 03:14:24 +00:00
|
|
|
LL | enum E {
|
|
|
|
| - variant in this enum
|
|
|
|
LL | Foo(F),
|
2019-08-21 23:30:11 +00:00
|
|
|
LL | Bar(B),
|
2022-06-22 18:33:59 +00:00
|
|
|
| ^^^
|
2019-08-21 23:30:11 +00:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-10-25 04:42:05 +00:00
|
|
|
--> $DIR/unused-struct-variant.rs:1:9
|
2019-08-21 23:30:11 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|