summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/module_name_repetitions.rs
blob: ebaa77cc283e0420cd0c7f17085cf998524e6b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// compile-flags: --test

#![warn(clippy::module_name_repetitions)]
#![allow(dead_code)]

mod foo {
    pub fn foo() {}
    pub fn foo_bar() {}
    pub fn bar_foo() {}
    pub struct FooCake;
    pub enum CakeFoo {}
    pub struct Foo7Bar;

    // Should not warn
    pub struct Foobar;
}

fn main() {}