|
| 1 | +error[E0433]: failed to resolve: could not find `inner` in the crate root |
| 2 | + --> $DIR/pub_underscore_fields.rs:47:27 |
| 3 | + | |
| 4 | +LL | pub(in super::inner) e: bool, |
| 5 | + | ^^^^^ could not find `inner` in the crate root |
| 6 | + |
| 7 | +error[E0433]: failed to resolve: could not find `inner` in the crate root |
| 8 | + --> $DIR/pub_underscore_fields.rs:48:27 |
| 9 | + | |
| 10 | +LL | pub(in super::inner) _f: Option<()>, |
| 11 | + | ^^^^^ could not find `inner` in the crate root |
| 12 | + |
| 13 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 14 | + --> $DIR/pub_underscore_fields.rs:6:9 |
| 15 | + | |
| 16 | +LL | pub _a: usize, |
| 17 | + | ^^^^^^ |
| 18 | + | |
| 19 | + = help: consider removing the underscore, or making the field private |
| 20 | + = note: `-D clippy::pub-underscore-fields` implied by `-D warnings` |
| 21 | + |
| 22 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 23 | + --> $DIR/pub_underscore_fields.rs:13:9 |
| 24 | + | |
| 25 | +LL | pub _c: i64, |
| 26 | + | ^^^^^^ |
| 27 | + | |
| 28 | + = help: consider removing the underscore, or making the field private |
| 29 | + |
| 30 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 31 | + --> $DIR/pub_underscore_fields.rs:15:9 |
| 32 | + | |
| 33 | +LL | pub _e: Option<u8>, |
| 34 | + | ^^^^^^ |
| 35 | + | |
| 36 | + = help: consider removing the underscore, or making the field private |
| 37 | + |
| 38 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 39 | + --> $DIR/pub_underscore_fields.rs:28:9 |
| 40 | + | |
| 41 | +LL | pub(crate) _b: Option<String>, |
| 42 | + | ^^^^^^^^^^^^^ |
| 43 | + | |
| 44 | + = help: consider removing the underscore, or making the field private |
| 45 | + |
| 46 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 47 | + --> $DIR/pub_underscore_fields.rs:40:13 |
| 48 | + | |
| 49 | +LL | pub(super) _b: u8, |
| 50 | + | ^^^^^^^^^^^^^ |
| 51 | + | |
| 52 | + = help: consider removing the underscore, or making the field private |
| 53 | + |
| 54 | +error: field marked as public but also inferred as unused because it's prefixed with `_` |
| 55 | + --> $DIR/pub_underscore_fields.rs:48:13 |
| 56 | + | |
| 57 | +LL | pub(in super::inner) _f: Option<()>, |
| 58 | + | ^^^^^^^^^^^^^^^^^^^^^^^ |
| 59 | + | |
| 60 | + = help: consider removing the underscore, or making the field private |
| 61 | + |
| 62 | +error: aborting due to 8 previous errors |
| 63 | + |
| 64 | +For more information about this error, try `rustc --explain E0433`. |
0 commit comments