mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-26 22:50:56 +00:00
21 lines
603 B
Rust
21 lines
603 B
Rust
#![warn(clippy::field_scoped_visibility_modifiers)]
|
|
|
|
pub mod pub_module {
|
|
pub(in crate::pub_module) mod pub_in_path_module {}
|
|
pub(super) mod pub_super_module {}
|
|
struct MyStruct {
|
|
private_field: bool,
|
|
pub pub_field: bool,
|
|
pub(crate) pub_crate_field: bool,
|
|
pub(in crate::pub_module) pub_in_path_field: bool,
|
|
pub(super) pub_super_field: bool,
|
|
#[allow(clippy::needless_pub_self)]
|
|
pub(self) pub_self_field: bool,
|
|
}
|
|
}
|
|
pub(crate) mod pub_crate_module {}
|
|
|
|
#[allow(clippy::needless_pub_self)]
|
|
pub(self) mod pub_self_module {}
|
|
|
|
fn main() {}
|