rust/tests/ui/lint/issue-17718-const-naming.rs
2023-01-11 09:32:08 +00:00

9 lines
158 B
Rust

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