summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/issue-17718-const-naming.rs
blob: d7f0e72769b0560e946dca5f98b96802d4d3099d (plain)
1
2
3
4
5
6
7
8
#![warn(unused)]
#![deny(warnings)]

const foo: isize = 3;
//~^ ERROR: should have an upper case name
//~^^ ERROR: constant `foo` is never used

fn main() {}