11warning: field is never read: `a`
2- --> $DIR/issue-85255.rs:7 :5
2+ --> $DIR/issue-85255.rs:8 :5
33 |
44LL | a: i32,
55 | ^^^^^^
@@ -11,22 +11,70 @@ LL | #![warn(dead_code)]
1111 | ^^^^^^^^^
1212
1313warning: field is never read: `b`
14- --> $DIR/issue-85255.rs:8:5
14+ --> $DIR/issue-85255.rs:9:5
15+ |
16+ LL | pub b: i32,
17+ | ^^^^^^^^^^
18+
19+ warning: associated function is never used: `a`
20+ --> $DIR/issue-85255.rs:15:8
21+ |
22+ LL | fn a(&self) -> i32 { 5 }
23+ | ^
24+
25+ warning: associated function is never used: `b`
26+ --> $DIR/issue-85255.rs:16:12
27+ |
28+ LL | pub fn b(&self) -> i32 { 6 }
29+ | ^
30+
31+ warning: field is never read: `a`
32+ --> $DIR/issue-85255.rs:20:5
33+ |
34+ LL | a: i32,
35+ | ^^^^^^
36+
37+ warning: field is never read: `b`
38+ --> $DIR/issue-85255.rs:21:5
39+ |
40+ LL | pub b: i32,
41+ | ^^^^^^^^^^
42+
43+ warning: associated function is never used: `a`
44+ --> $DIR/issue-85255.rs:27:8
45+ |
46+ LL | fn a(&self) -> i32 { 5 }
47+ | ^
48+
49+ warning: associated function is never used: `b`
50+ --> $DIR/issue-85255.rs:28:12
51+ |
52+ LL | pub fn b(&self) -> i32 { 6 }
53+ | ^
54+
55+ warning: field is never read: `a`
56+ --> $DIR/issue-85255.rs:32:5
57+ |
58+ LL | a: i32,
59+ | ^^^^^^
60+
61+ warning: field is never read: `b`
62+ --> $DIR/issue-85255.rs:33:5
1563 |
1664LL | pub b: i32,
1765 | ^^^^^^^^^^
1866
1967warning: associated function is never used: `a`
20- --> $DIR/issue-85255.rs:14 :8
68+ --> $DIR/issue-85255.rs:39 :8
2169 |
2270LL | fn a(&self) -> i32 { 5 }
2371 | ^
2472
2573warning: associated function is never used: `b`
26- --> $DIR/issue-85255.rs:15 :12
74+ --> $DIR/issue-85255.rs:40 :12
2775 |
2876LL | pub fn b(&self) -> i32 { 6 }
2977 | ^
3078
31- warning: 4 warnings emitted
79+ warning: 12 warnings emitted
3280
0 commit comments