]> git.lizzy.rs Git - rust.git/blob - tests/ui/module_name_repetitions.rs
Auto merge of #3645 - phansch:remove_copyright_headers, r=oli-obk
[rust.git] / tests / ui / module_name_repetitions.rs
1 #![warn(clippy::module_name_repetitions)]
2 #![allow(dead_code)]
3
4 mod foo {
5     pub fn foo() {}
6     pub fn foo_bar() {}
7     pub fn bar_foo() {}
8     pub struct FooCake {}
9     pub enum CakeFoo {}
10     pub struct Foo7Bar;
11
12     // Should not warn
13     pub struct Foobar;
14 }
15
16 fn main() {}