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

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

19 lines
413 B
Plaintext
Raw Normal View History

error: variant `Bar` is never constructed
--> $DIR/unused-struct-variant.rs:8:5
2019-08-21 18:30:11 -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
--> $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)]`
error: aborting due to 1 previous error
2019-08-21 18:30:11 -05:00