rust/src/test/ui/lint/lint-non-camel-case-with-trailing-underscores.rs
Andy Russell 1b28f5aa66
improve non_camel_case_types diagnostics
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00

12 lines
217 B
Rust

// compile-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() { }