summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/lint-non-snake-case-modules.rs
blob: 73f1233217225980422207fe92cbb19fd3a9f556 (plain)
1
2
3
4
5
6
7
8
9
10
#![deny(non_snake_case)]
#![allow(dead_code)]

mod FooBar { //~ ERROR module `FooBar` should have a snake case name
    pub struct S;
}

fn f(_: FooBar::S) { }

fn main() { }