mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
24 lines
371 B
Rust
24 lines
371 B
Rust
#![feature(tool_lints)]
|
|
|
|
#![warn(clippy::module_inception)]
|
|
|
|
mod foo {
|
|
mod bar {
|
|
mod bar {
|
|
mod foo {}
|
|
}
|
|
mod foo {}
|
|
}
|
|
mod foo {
|
|
mod bar {}
|
|
}
|
|
}
|
|
|
|
// No warning. See <https://github.com/rust-lang-nursery/rust-clippy/issues/1220>.
|
|
mod bar {
|
|
#[allow(clippy::module_inception)]
|
|
mod bar {
|
|
}
|
|
}
|
|
|
|
fn main() {}
|