]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/issue-17718-const-naming.rs
Rollup merge of #106799 - scottmcm:remove-unused-generics, r=cuviper
[rust.git] / tests / ui / lint / issue-17718-const-naming.rs
1 #![warn(unused)]
2 #![deny(warnings)]
3
4 const foo: isize = 3;
5 //~^ ERROR: should have an upper case name
6 //~^^ ERROR: constant `foo` is never used
7
8 fn main() {}