rust/tests/ui/lint/lint-non-snake-case-modules.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
175 B
Rust
Raw Normal View History

#![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() { }