rust/src/test/ui/issues/issue-17718-const-naming.rs
Andy Russell e379970056
improve non_upper_case_globals diagnostics
Use a structured suggestion and tighten the span to just the identifier.
2019-01-08 13:24:38 -05:00

9 lines
157 B
Rust

#![warn(unused)]
#![deny(warnings)]
const foo: isize = 3;
//~^ ERROR: should have an upper case name
//~^^ ERROR: constant item is never used
fn main() {}