]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/unused-struct-variant.stderr
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / lint / dead-code / unused-struct-variant.stderr
1 error: variant `Bar` is never constructed
2   --> $DIR/unused-struct-variant.rs:8:5
3    |
4 LL | enum E {
5    |      - variant in this enum
6 LL |     Foo(F),
7 LL |     Bar(B),
8    |     ^^^
9    |
10 note: the lint level is defined here
11   --> $DIR/unused-struct-variant.rs:1:9
12    |
13 LL | #![deny(unused)]
14    |         ^^^^^^
15    = note: `#[deny(dead_code)]` implied by `#[deny(unused)]`
16
17 error: aborting due to previous error
18