1
1
error: field marked as public but also inferred as unused because it's prefixed with `_`
2
- --> $DIR/pub_underscore_fields.rs:7 :9
2
+ --> $DIR/pub_underscore_fields.rs:11 :9
3
3
|
4
4
LL | pub(super) _b: u8,
5
5
| ^^^^^^^^^^^^^
@@ -9,39 +9,39 @@ LL | pub(super) _b: u8,
9
9
= help: to override `-D warnings` add `#[allow(clippy::pub_underscore_fields)]`
10
10
11
11
error: field marked as public but also inferred as unused because it's prefixed with `_`
12
- --> $DIR/pub_underscore_fields.rs:14 :13
12
+ --> $DIR/pub_underscore_fields.rs:19 :13
13
13
|
14
14
LL | pub(in crate::inner) _f: Option<()>,
15
15
| ^^^^^^^^^^^^^^^^^^^^^^^
16
16
|
17
17
= help: consider removing the underscore, or making the field private
18
18
19
19
error: field marked as public but also inferred as unused because it's prefixed with `_`
20
- --> $DIR/pub_underscore_fields.rs:21 :9
20
+ --> $DIR/pub_underscore_fields.rs:26 :9
21
21
|
22
22
LL | pub _a: usize,
23
23
| ^^^^^^
24
24
|
25
25
= help: consider removing the underscore, or making the field private
26
26
27
27
error: field marked as public but also inferred as unused because it's prefixed with `_`
28
- --> $DIR/pub_underscore_fields.rs:28 :9
28
+ --> $DIR/pub_underscore_fields.rs:33 :9
29
29
|
30
30
LL | pub _c: i64,
31
31
| ^^^^^^
32
32
|
33
33
= help: consider removing the underscore, or making the field private
34
34
35
35
error: field marked as public but also inferred as unused because it's prefixed with `_`
36
- --> $DIR/pub_underscore_fields.rs:30 :9
36
+ --> $DIR/pub_underscore_fields.rs:36 :9
37
37
|
38
38
LL | pub _e: Option<u8>,
39
39
| ^^^^^^
40
40
|
41
41
= help: consider removing the underscore, or making the field private
42
42
43
43
error: field marked as public but also inferred as unused because it's prefixed with `_`
44
- --> $DIR/pub_underscore_fields.rs:43 :9
44
+ --> $DIR/pub_underscore_fields.rs:49 :9
45
45
|
46
46
LL | pub(crate) _b: Option<String>,
47
47
| ^^^^^^^^^^^^^
0 commit comments