rust/src/test/compile-fail/lint-non-camel-case-enum.rs

8 lines
121 B
Rust
Raw Normal View History

#[forbid(non_camel_case_types)]
enum foo { //~ ERROR type, variant, or trait must be camel case
Bar
}
fn main() {
}