1 warning: fields `d`, `f`, and `g` are never read
2 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:10:5
5 | --- fields in this struct
15 note: the lint level is defined here
16 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:1:9
18 LL | #![warn(dead_code)]
21 error: fields `c` and `e` are never read
22 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:9:5
25 | --- fields in this struct
33 note: the lint level is defined here
34 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:8:12
36 LL | #[deny(dead_code)]
39 error: field `b` is never read
40 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:7:5
43 | --- field in this struct
48 note: the lint level is defined here
49 --> $DIR/multiple-dead-codes-in-the-same-struct.rs:6:14
51 LL | #[forbid(dead_code)]
54 error: aborting due to 2 previous errors; 1 warning emitted