rust-clippy/tests/ui/module_name_repetitions.rs
2019-01-08 21:46:39 +01:00

16 lines
279 B
Rust

#![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() {}