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: associated function `a` is never used
18 --> $DIR/issue-85255.rs:14:8
20 LL | fn a(&self) -> i32 { 5 }
23 warning: associated function `b` is never used
24 --> $DIR/issue-85255.rs:15:12
26 LL | pub fn b(&self) -> i32 { 6 }
29 warning: fields `a` and `b` are never read
30 --> $DIR/issue-85255.rs:19:5
32 LL | pub(crate) struct Foo1 {
33 | ---- fields in this struct
39 warning: associated function `a` is never used
40 --> $DIR/issue-85255.rs:26:8
42 LL | fn a(&self) -> i32 { 5 }
45 warning: associated function `b` is never used
46 --> $DIR/issue-85255.rs:27:12
48 LL | pub fn b(&self) -> i32 { 6 }
51 warning: fields `a` and `b` are never read
52 --> $DIR/issue-85255.rs:31:5
54 LL | pub(crate) struct Foo2 {
55 | ---- fields in this struct
61 warning: associated function `a` is never used
62 --> $DIR/issue-85255.rs:38:8
64 LL | fn a(&self) -> i32 { 5 }
67 warning: associated function `b` is never used
68 --> $DIR/issue-85255.rs:39:12
70 LL | pub fn b(&self) -> i32 { 6 }
73 warning: 9 warnings emitted