2022-06-10 12:14:24 +09:00
|
|
|
error: variant `Bar` is never constructed
|
2019-10-25 00:42:05 -04:00
|
|
|
--> $DIR/unused-struct-variant.rs:8:5
|
2019-08-21 16:30:11 -07:00
|
|
|
|
|
2022-06-10 12:14:24 +09:00
|
|
|
LL | enum E {
|
|
|
|
| - variant in this enum
|
|
|
|
LL | Foo(F),
|
2019-08-21 16:30:11 -07:00
|
|
|
LL | Bar(B),
|
2022-06-22 20:33:59 +02:00
|
|
|
| ^^^
|
2019-08-21 16:30:11 -07:00
|
|
|
|
|
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-struct-variant.rs:1:9
|
2019-08-21 16:30:11 -07:00
|
|
|
|
|
|
|
|
LL | #![deny(unused)]
|
|
|
|
| ^^^^^^
|
|
|
|
= note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|