rust/tests/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
2024-02-16 20:02:50 +00:00

12 lines
217 B
Rust

//@ check-pass
#![allow(dead_code)]
// This is ok because we often use the trailing underscore to mean 'prime'
//@ pretty-expanded FIXME #23616
#[forbid(non_camel_case_types)]
type Foo_ = isize;
pub fn main() { }