]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-non-snake-case-modules.rs
Rollup merge of #106935 - TaKO8Ki:fix-104440, r=cjgillot
[rust.git] / tests / 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
5     pub struct S;
6 }
7
8 fn f(_: FooBar::S) { }
9
10 fn main() { }