]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-non-uppercase-associated-const.rs
Merge commit '3ae8faff4d46ad92f194c2a4b941c3152a701b31' into clippyup
[rust.git] / src / test / ui / lint / lint-non-uppercase-associated-const.rs
1 #![deny(non_upper_case_globals)]
2 #![allow(dead_code)]
3
4 struct Foo;
5
6 impl Foo {
7     const not_upper: bool = true;
8 }
9 //~^^ ERROR associated constant `not_upper` should have an upper case name
10
11 fn main() {}