rust/tests/ui/lint/dead-code/lint-dead-code-5.stderr

35 lines
748 B
Plaintext
Raw Normal View History

error: variant `Variant2` is never constructed
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-5.rs:6:5
2018-08-08 07:28:26 -05:00
|
LL | enum Enum1 {
| ----- variant in this enum
LL | Variant1(isize),
2019-03-09 06:03:44 -06:00
LL | Variant2
2018-08-08 07:28:26 -05:00
| ^^^^^^^^
|
2020-01-22 17:57:38 -06:00
note: the lint level is 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: variants `Variant5` and `Variant6` are never constructed
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-5.rs:13:5
2018-08-08 07:28:26 -05:00
|
LL | enum Enum2 {
| ----- variants in this enum
...
2019-03-09 06:03:44 -06:00
LL | Variant5 { _x: isize },
2022-06-22 13:33:59 -05:00
| ^^^^^^^^
2019-03-09 06:03:44 -06:00
LL | Variant6(isize),
2022-06-22 13:33:59 -05:00
| ^^^^^^^^
2018-08-08 07:28:26 -05:00
error: enum `Enum3` is never used
--> $DIR/lint-dead-code-5.rs:35:6
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 3 previous errors
2018-08-08 07:28:26 -05:00