rust/src/test/run-pass/lint-non-camel-case-with-trailing-underscores.rs

7 lines
140 B
Rust
Raw Normal View History

// This is ok because we often use the trailing underscore to mean 'prime'
#[forbid(non_camel_case_types)]
type Foo_ = int;
fn main() { }