]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lint/lint-non-uppercase-associated-const.rs
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[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() {}