]> git.lizzy.rs Git - rust.git/blob - tests/ui/module_inception.rs
Adapt the *.stderr files of the ui-tests to the tool_lints
[rust.git] / tests / ui / module_inception.rs
1 #![feature(tool_lints)]
2
3 #![warn(clippy::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/rust-lang-nursery/rust-clippy/issues/1220>.
18 mod bar {
19     #[allow(clippy::module_inception)]
20     mod bar {
21     }
22 }
23
24 fn main() {}