error: field is never read: `b`
  --> $DIR/lint-dead-code-4.rs:7:5
   |
LL |     b: bool,
   |     ^^^^^^^
   |
note: the lint level is defined here
  --> $DIR/lint-dead-code-4.rs:3:9
   |
LL | #![deny(dead_code)]
   |         ^^^^^^^^^

error: variant is never constructed: `X`
  --> $DIR/lint-dead-code-4.rs:15:5
   |
LL |     X,
   |     ^

error: variant is never constructed: `Y`
  --> $DIR/lint-dead-code-4.rs:16:5
   |
LL | /     Y {
LL | |         a: String,
LL | |         b: i32,
LL | |         c: i32,
LL | |     },
   | |_____^

error: enum is never used: `ABC`
  --> $DIR/lint-dead-code-4.rs:24:6
   |
LL | enum ABC {
   |      ^^^

error: variant is never constructed: `I`
  --> $DIR/lint-dead-code-4.rs:36:5
   |
LL |     I,
   |     ^

error: field is never read: `b`
  --> $DIR/lint-dead-code-4.rs:39:9
   |
LL |         b: i32,
   |         ^^^^^^

error: field is never read: `c`
  --> $DIR/lint-dead-code-4.rs:40:9
   |
LL |         c: i32,
   |         ^^^^^^

error: variant is never constructed: `K`
  --> $DIR/lint-dead-code-4.rs:42:5
   |
LL |     K
   |     ^

error: field is never read: `x`
  --> $DIR/lint-dead-code-4.rs:61:5
   |
LL |     x: usize,
   |     ^^^^^^^^

error: field is never read: `c`
  --> $DIR/lint-dead-code-4.rs:63:5
   |
LL |     c: bool,
   |     ^^^^^^^

error: aborting due to 10 previous errors

