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