mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
29 lines
1.0 KiB
Plaintext
29 lines
1.0 KiB
Plaintext
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
|
|
|