]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-non-snake-case-modules.rs
Sync core::simd up to rust-lang/portable-simd@2e081db92aa3ee0a4563bc28ce01bdad5b1b2efd
[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
5     pub struct S;
6 }
7
8 fn f(_: FooBar::S) { }
9
10 fn main() { }