]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-non-snake-case-modules.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[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() { }