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

73 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-08-08 07:28:26 -05:00
error: field is never used: `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
|
LL | b: bool, //~ ERROR: field is never used
| ^^^^^^^
|
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
|
LL | X, //~ ERROR variant is never constructed
| ^
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
|
LL | / Y { //~ ERROR variant is never constructed
LL | | a: String,
LL | | b: i32,
LL | | c: i32,
LL | | },
| |_____^
error: enum is never used: `ABC`
2018-12-25 09:56:47 -06:00
--> $DIR/lint-dead-code-4.rs:24:1
2018-08-08 07:28:26 -05:00
|
LL | enum ABC { //~ ERROR enum is never used
| ^^^^^^^^
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
|
LL | I, //~ ERROR variant is never constructed
| ^
error: field is never used: `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
|
LL | b: i32, //~ ERROR field is never used
| ^^^^^^
error: field is never used: `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
|
LL | c: i32, //~ ERROR field is never used
| ^^^^^^
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
|
LL | K //~ ERROR variant is never constructed
| ^
error: field is never used: `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
|
LL | x: usize, //~ ERROR: field is never used
| ^^^^^^^^
error: field is never used: `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
|
LL | c: bool, //~ ERROR: field is never used
| ^^^^^^^
error: aborting due to 10 previous errors