rust/tests/ui/lint/non-snake-case/lint-non-snake-case-crate-s...

8 lines
196 B
Rust

//@ only-x86_64-unknown-linux-gnu
#![crate_type = "staticlib"]
#![crate_name = "NonSnakeCase"]
//~^ ERROR crate `NonSnakeCase` should have a snake case name
#![deny(non_snake_case)]
fn main() {}