]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/dead-code/issue-85255.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / 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: associated function `a` is never used
18 --> $DIR/issue-85255.rs:14:8
19 |
20 LL | fn a(&self) -> i32 { 5 }
21 | ^
22
23 warning: associated function `b` is never used
24 --> $DIR/issue-85255.rs:15:12
25 |
26 LL | pub fn b(&self) -> i32 { 6 }
27 | ^
28
29 warning: fields `a` and `b` are never read
30 --> $DIR/issue-85255.rs:19:5
31 |
32 LL | pub(crate) struct Foo1 {
33 | ---- fields in this struct
34 LL | a: i32,
35 | ^^^^^^
36 LL | pub b: i32,
37 | ^^^^^^^^^^
38
39 warning: associated function `a` is never used
40 --> $DIR/issue-85255.rs:26:8
41 |
42 LL | fn a(&self) -> i32 { 5 }
43 | ^
44
45 warning: associated function `b` is never used
46 --> $DIR/issue-85255.rs:27:12
47 |
48 LL | pub fn b(&self) -> i32 { 6 }
49 | ^
50
51 warning: fields `a` and `b` are never read
52 --> $DIR/issue-85255.rs:31:5
53 |
54 LL | pub(crate) struct Foo2 {
55 | ---- fields in this struct
56 LL | a: i32,
57 | ^^^^^^
58 LL | pub b: i32,
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