rust/src/test/ui/lint/dead-code/lint-dead-code-4.stderr

73 lines
1.3 KiB
Plaintext
Raw Normal View History

error: field is never read: `b`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:7:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | b: bool,
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-4.rs:3:9
2018-08-08 07:28:26 -05:00
|
LL | #![deny(dead_code)]
| ^^^^^^^^^
error: variant is never constructed: `X`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:15:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | X,
2018-08-08 07:28:26 -05:00
| ^
error: variant is never constructed: `Y`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:16:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | / Y {
2018-08-08 07:28:26 -05:00
LL | | a: String,
LL | | b: i32,
LL | | c: i32,
LL | | },
| |_____^
error: enum is never used: `ABC`
--> $DIR/lint-dead-code-4.rs:24:6
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | enum ABC {
| ^^^
2018-08-08 07:28:26 -05:00
error: variant is never constructed: `I`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:36:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | I,
2018-08-08 07:28:26 -05:00
| ^
error: field is never read: `b`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:39:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | b: i32,
2018-08-08 07:28:26 -05:00
| ^^^^^^
error: field is never read: `c`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:40:9
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | c: i32,
2018-08-08 07:28:26 -05:00
| ^^^^^^
error: variant is never constructed: `K`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:42:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | K
2018-08-08 07:28:26 -05:00
| ^
error: field is never read: `x`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:61:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | x: usize,
2018-08-08 07:28:26 -05:00
| ^^^^^^^^
error: field is never read: `c`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:63:5
2018-08-08 07:28:26 -05:00
|
2019-03-09 06:03:44 -06:00
LL | c: bool,
2018-08-08 07:28:26 -05:00
| ^^^^^^^
error: aborting due to 10 previous errors