fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: fields `field1`, `field2`, `field3`, and `field4` are never read 2 --> $DIR/clone-debug-dead-code-in-the-same-struct.rs:6:5 3 | 4LL | pub struct Whatever { 5 | -------- fields in this struct 6LL | pub field0: (), 7LL | field1: (), 8 | ^^^^^^ 9LL | field2: (), 10 | ^^^^^^ 11LL | field3: (), 12 | ^^^^^^ 13LL | field4: (), 14 | ^^^^^^ 15 | 16 = note: `Whatever` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis 17note: the lint level is defined here 18 --> $DIR/clone-debug-dead-code-in-the-same-struct.rs:1:11 19 | 20LL | #![forbid(dead_code)] 21 | ^^^^^^^^^ 22 23error: aborting due to previous error 24