]> git.proxmox.com Git - rustc.git/blob - src/test/ui/derives/clone-debug-dead-code-in-the-same-struct.stderr
New upstream version 1.67.1+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: `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
19 |
20 LL | #![forbid(dead_code)]
21 | ^^^^^^^^^
22
23 error: aborting due to previous error
24