1 warning: fields `a` and `b` are never read
2 --> $DIR/issue-85255.rs:7:5
5 | --- fields in this struct
11 note: the lint level is defined here
12 --> $DIR/issue-85255.rs:4:9
14 LL | #![warn(dead_code)]
17 warning: fields `a` and `b` are never read
18 --> $DIR/issue-85255.rs:19:5
20 LL | pub(crate) struct Foo1 {
21 | ---- fields in this struct
27 warning: fields `a` and `b` are never read
28 --> $DIR/issue-85255.rs:31:5
30 LL | pub(crate) struct Foo2 {
31 | ---- fields in this struct
37 warning: method `a` is never used
38 --> $DIR/issue-85255.rs:14:8
40 LL | fn a(&self) -> i32 { 5 }
43 warning: method `b` is never used
44 --> $DIR/issue-85255.rs:15:12
46 LL | pub fn b(&self) -> i32 { 6 }
49 warning: method `a` is never used
50 --> $DIR/issue-85255.rs:26:8
52 LL | fn a(&self) -> i32 { 5 }
55 warning: method `b` is never used
56 --> $DIR/issue-85255.rs:27:12
58 LL | pub fn b(&self) -> i32 { 6 }
61 warning: method `a` is never used
62 --> $DIR/issue-85255.rs:38:8
64 LL | fn a(&self) -> i32 { 5 }
67 warning: method `b` is never used
68 --> $DIR/issue-85255.rs:39:12
70 LL | pub fn b(&self) -> i32 { 6 }
73 warning: 9 warnings emitted