rust/src/test/ui/lint/lint-non-snake-case-crate.rs

6 lines
158 B
Rust
Raw Normal View History

#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name such as `non_snake_case`
#![deny(non_snake_case)]
fn main() {}