summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/dead-code/unused-enum.stderr
blob: d2602dbb3449780bf5270f3ca667f1f317c063dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
error: struct `F` is never constructed
  --> $DIR/unused-enum.rs:3:8
   |
LL | struct F;
   |        ^
   |
note: the lint level is defined here
  --> $DIR/unused-enum.rs:1:9
   |
LL | #![deny(unused)]
   |         ^^^^^^
   = note: `#[deny(dead_code)]` implied by `#[deny(unused)]`

error: struct `B` is never constructed
  --> $DIR/unused-enum.rs:4:8
   |
LL | struct B;
   |        ^

error: enum `E` is never used
  --> $DIR/unused-enum.rs:6:6
   |
LL | enum E {
   |      ^

error: aborting due to 3 previous errors