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: `Whatever` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
17 note: the lint level is defined here
18 --> $DIR/clone-debug-dead-code-in-the-same-struct.rs:1:11
20 LL | #![forbid(dead_code)]
23 error: aborting due to previous error