]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/dead-code/issue-85255.stderr
Auto merge of #101138 - Rejyr:diagnostic-migration-rustc-lint-pt2, r=davidtwco
[rust.git] / tests / ui / lint / dead-code / issue-85255.stderr
1 warning: fields `a` and `b` are never read
2   --> $DIR/issue-85255.rs:7:5
3    |
4 LL | struct Foo {
5    |        --- fields in this struct
6 LL |     a: i32,
7    |     ^
8 LL |     pub b: i32,
9    |         ^
10    |
11 note: the lint level is defined here
12   --> $DIR/issue-85255.rs:4:9
13    |
14 LL | #![warn(dead_code)]
15    |         ^^^^^^^^^
16
17 warning: fields `a` and `b` are never read
18   --> $DIR/issue-85255.rs:19:5
19    |
20 LL | pub(crate) struct Foo1 {
21    |                   ---- fields in this struct
22 LL |     a: i32,
23    |     ^
24 LL |     pub b: i32,
25    |         ^
26
27 warning: fields `a` and `b` are never read
28   --> $DIR/issue-85255.rs:31:5
29    |
30 LL | pub(crate) struct Foo2 {
31    |                   ---- fields in this struct
32 LL |     a: i32,
33    |     ^
34 LL |     pub b: i32,
35    |         ^
36
37 warning: associated function `a` is never used
38   --> $DIR/issue-85255.rs:14:8
39    |
40 LL |     fn a(&self) -> i32 { 5 }
41    |        ^
42
43 warning: associated function `b` is never used
44   --> $DIR/issue-85255.rs:15:12
45    |
46 LL |     pub fn b(&self) -> i32 { 6 }
47    |            ^
48
49 warning: associated function `a` is never used
50   --> $DIR/issue-85255.rs:26:8
51    |
52 LL |     fn a(&self) -> i32 { 5 }
53    |        ^
54
55 warning: associated function `b` is never used
56   --> $DIR/issue-85255.rs:27:12
57    |
58 LL |     pub fn b(&self) -> i32 { 6 }
59    |            ^
60
61 warning: associated function `a` is never used
62   --> $DIR/issue-85255.rs:38:8
63    |
64 LL |     fn a(&self) -> i32 { 5 }
65    |        ^
66
67 warning: associated function `b` is never used
68   --> $DIR/issue-85255.rs:39:12
69    |
70 LL |     pub fn b(&self) -> i32 { 6 }
71    |            ^
72
73 warning: 9 warnings emitted
74