]> git.lizzy.rs Git - rust.git/blob - tests/ui/module_inception.rs
remove all //~ from tests
[rust.git] / tests / ui / module_inception.rs
1 #![feature(plugin)]
2 #![plugin(clippy)]
3 #![deny(module_inception)]
4
5 mod foo {
6     mod bar {
7         mod bar {
8             mod foo {}
9         }
10         mod foo {}
11     }
12     mod foo {
13         mod bar {}
14     }
15 }
16
17 // No warning. See <https://github.com/Manishearth/rust-clippy/issues/1220>.
18 mod bar {
19     #[allow(module_inception)]
20     mod bar {
21     }
22 }
23
24 fn main() {}