mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
18 lines
303 B
Rust
18 lines
303 B
Rust
//@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() {}
|