2018-08-08 07:28:26 -05:00
|
|
|
error: variant is never constructed: `Variant2`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-dead-code-5.rs:6:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Variant2
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-dead-code-5.rs:2:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(dead_code)]
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: variant is never constructed: `Variant5`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-dead-code-5.rs:13:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Variant5 { _x: isize },
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: variant is never constructed: `Variant6`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-dead-code-5.rs:14:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Variant6(isize),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: enum is never used: `Enum3`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/lint-dead-code-5.rs:18:1
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | enum Enum3 {
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|