rust/tests/ui/module_inception.rs
2018-08-29 11:08:29 -07:00

25 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() {}