11error: 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
33 |
44LL | pub(super) _b: u8,
55 | ^^^^^^^^^^^^^
@@ -9,39 +9,39 @@ LL | pub(super) _b: u8,
99 = help: to override `-D warnings` add `#[allow(clippy::pub_underscore_fields)]`
1010
1111error: 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
1313 |
1414LL | pub(in crate::inner) _f: Option<()>,
1515 | ^^^^^^^^^^^^^^^^^^^^^^^
1616 |
1717 = help: consider removing the underscore, or making the field private
1818
1919error: 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
2121 |
2222LL | pub _a: usize,
2323 | ^^^^^^
2424 |
2525 = help: consider removing the underscore, or making the field private
2626
2727error: 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
2929 |
3030LL | pub _c: i64,
3131 | ^^^^^^
3232 |
3333 = help: consider removing the underscore, or making the field private
3434
3535error: 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
3737 |
3838LL | pub _e: Option<u8>,
3939 | ^^^^^^
4040 |
4141 = help: consider removing the underscore, or making the field private
4242
4343error: 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
4545 |
4646LL | pub(crate) _b: Option<String>,
4747 | ^^^^^^^^^^^^^
0 commit comments