]>
Commit | Line | Data |
---|---|---|
923072b8 | 1 | error: field `f` is never read |
c295e0f8 XL |
2 | --> $DIR/clone-debug-dead-code.rs:6:12 |
3 | | | |
4 | LL | struct A { f: () } | |
923072b8 FG |
5 | | - ^^^^^ |
6 | | | | |
7 | | field in this struct | |
c295e0f8 XL |
8 | | |
9 | note: the lint level is defined here | |
10 | --> $DIR/clone-debug-dead-code.rs:4:11 | |
11 | | | |
12 | LL | #![forbid(dead_code)] | |
13 | | ^^^^^^^^^ | |
14 | ||
923072b8 | 15 | error: field `f` is never read |
c295e0f8 XL |
16 | --> $DIR/clone-debug-dead-code.rs:10:12 |
17 | | | |
18 | LL | struct B { f: () } | |
923072b8 FG |
19 | | - ^^^^^ |
20 | | | | |
21 | | field in this struct | |
5099ac24 | 22 | | |
923072b8 | 23 | = note: `B` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis |
c295e0f8 | 24 | |
923072b8 | 25 | error: field `f` is never read |
c295e0f8 XL |
26 | --> $DIR/clone-debug-dead-code.rs:14:12 |
27 | | | |
28 | LL | struct C { f: () } | |
923072b8 FG |
29 | | - ^^^^^ |
30 | | | | |
31 | | field in this struct | |
5099ac24 | 32 | | |
923072b8 | 33 | = note: `C` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis |
c295e0f8 | 34 | |
923072b8 | 35 | error: field `f` is never read |
c295e0f8 XL |
36 | --> $DIR/clone-debug-dead-code.rs:18:12 |
37 | | | |
38 | LL | struct D { f: () } | |
923072b8 FG |
39 | | - ^^^^^ |
40 | | | | |
41 | | field in this struct | |
5099ac24 | 42 | | |
923072b8 | 43 | = note: `D` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis |
c295e0f8 | 44 | |
923072b8 | 45 | error: field `f` is never read |
c295e0f8 XL |
46 | --> $DIR/clone-debug-dead-code.rs:21:12 |
47 | | | |
48 | LL | struct E { f: () } | |
923072b8 FG |
49 | | - ^^^^^ |
50 | | | | |
51 | | field in this struct | |
c295e0f8 XL |
52 | |
53 | error: aborting due to 5 previous errors | |
54 |