about summary refs log tree commit diff
path: root/tests/ui/lint/dead-code/issue-41883.stderr
blob: 47ccef9a53069eae298cdf5d1e9363d6cc72f4e4 (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
28
29
30
31
32
33
34
error: variant `Dead` is never constructed
  --> $DIR/issue-41883.rs:4:5
   |
LL | enum Category {
   |      -------- variant in this enum
LL |     Dead,
   |     ^^^^
   |
note: the lint level is defined here
  --> $DIR/issue-41883.rs:1:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: trait `UnusedTrait` is never used
  --> $DIR/issue-41883.rs:8:7
   |
LL | trait UnusedTrait {
   |       ^^^^^^^^^^^

error: struct `UnusedStruct` is never constructed
  --> $DIR/issue-41883.rs:14:8
   |
LL | struct UnusedStruct;
   |        ^^^^^^^^^^^^

error: struct `UnusedStruct` is never constructed
  --> $DIR/issue-41883.rs:24:12
   |
LL |     struct UnusedStruct;
   |            ^^^^^^^^^^^^

error: aborting due to 4 previous errors