22 lines
603 B
Rust
22 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() {}
|