rust/src/test/ui/issues/issue-17718-const-naming.rs
2018-12-25 21:08:33 -07:00

9 lines
164 B
Rust

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