]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/lint-non-uppercase-associated-const.rs
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / 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() {}