1 error: fields `field1`, `field2`, `field3` and `field4` are never read
2 --> $DIR/clone-debug-dead-code-in-the-same-struct.rs:6:5
4 LL | pub struct Whatever {
5 | -------- fields in this struct
16 note: the lint level is defined here
17 --> $DIR/clone-debug-dead-code-in-the-same-struct.rs:1:11
19 LL | #![forbid(dead_code)]
21 = note: `Whatever` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
23 error: aborting due to previous error