mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 07:04:18 +00:00
28 lines
1 KiB
Text
28 lines
1 KiB
Text
error: scoped visibility modifier on a field
|
|
--> tests/ui/field_scoped_visibility_modifiers.rs:9:9
|
|
|
|
|
LL | pub(crate) pub_crate_field: bool,
|
|
| ^^^^^^^^^^
|
|
|
|
|
= help: consider making the field private and adding a scoped visibility method for it
|
|
= note: `-D clippy::field-scoped-visibility-modifiers` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::field_scoped_visibility_modifiers)]`
|
|
|
|
error: scoped visibility modifier on a field
|
|
--> tests/ui/field_scoped_visibility_modifiers.rs:10:9
|
|
|
|
|
LL | pub(in crate::pub_module) pub_in_path_field: bool,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= help: consider making the field private and adding a scoped visibility method for it
|
|
|
|
error: scoped visibility modifier on a field
|
|
--> tests/ui/field_scoped_visibility_modifiers.rs:11:9
|
|
|
|
|
LL | pub(super) pub_super_field: bool,
|
|
| ^^^^^^^^^^
|
|
|
|
|
= help: consider making the field private and adding a scoped visibility method for it
|
|
|
|
error: aborting due to 3 previous errors
|
|
|