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