blob: eaf43e4536104257bd7edbff1b76d9660ba6ff8a (
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 `Variant2` is never constructed
--> $DIR/lint-dead-code-5.rs:6:5
|
LL | enum Enum1 {
| ----- variant in this enum
LL | Variant1(isize),
LL | Variant2
| ^^^^^^^^
|
note: the lint level is defined here
--> $DIR/lint-dead-code-5.rs:2:9
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: variants `Variant5` and `Variant6` are never constructed
--> $DIR/lint-dead-code-5.rs:13:5
|
LL | enum Enum2 {
| ----- variants in this enum
...
LL | Variant5 { _x: isize },
| ^^^^^^^^
LL | Variant6(isize),
| ^^^^^^^^
error: enum `Enum3` is never used
--> $DIR/lint-dead-code-5.rs:35:6
|
LL | enum Enum3 {
| ^^^^^
error: aborting due to 3 previous errors
|