]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-non-snake-case-modules.rs
Parallelize and optimize parts of HIR map creation
[rust.git] / src / test / ui / lint / lint-non-snake-case-modules.rs
1 #![deny(non_snake_case)]
2 #![allow(dead_code)]
3
4 mod FooBar { //~ ERROR module `FooBar` should have a snake case name such as `foo_bar`
5     pub struct S;
6 }
7
8 fn f(_: FooBar::S) { }
9
10 fn main() { }