]> git.lizzy.rs Git - rust.git/blob - tests/ui/derives/clone-debug-dead-code.stderr
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / derives / clone-debug-dead-code.stderr
1 error: field `f` is never read
2   --> $DIR/clone-debug-dead-code.rs:6:12
3    |
4 LL | struct A { f: () }
5    |        -   ^
6    |        |
7    |        field in this struct
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
15 error: field `f` is never read
16   --> $DIR/clone-debug-dead-code.rs:10:12
17    |
18 LL | struct B { f: () }
19    |        -   ^
20    |        |
21    |        field in this struct
22    |
23    = note: `B` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
24
25 error: field `f` is never read
26   --> $DIR/clone-debug-dead-code.rs:14:12
27    |
28 LL | struct C { f: () }
29    |        -   ^
30    |        |
31    |        field in this struct
32    |
33    = note: `C` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
34
35 error: field `f` is never read
36   --> $DIR/clone-debug-dead-code.rs:18:12
37    |
38 LL | struct D { f: () }
39    |        -   ^
40    |        |
41    |        field in this struct
42    |
43    = note: `D` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
44
45 error: field `f` is never read
46   --> $DIR/clone-debug-dead-code.rs:21:12
47    |
48 LL | struct E { f: () }
49    |        -   ^
50    |        |
51    |        field in this struct
52
53 error: aborting due to 5 previous errors
54