2015-03-22 04:38:42 -06:00
|
|
|
#![deny(non_upper_case_globals)]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
|
|
|
|
struct Foo;
|
2015-03-15 19:35:25 -06:00
|
|
|
|
2015-03-22 04:38:42 -06:00
|
|
|
impl Foo {
|
|
|
|
const not_upper: bool = true;
|
2015-03-15 19:35:25 -06:00
|
|
|
}
|
2019-01-04 15:00:15 -05:00
|
|
|
//~^^ ERROR associated constant `not_upper` should have an upper case name
|
2015-03-15 19:35:25 -06:00
|
|
|
|
2015-03-22 04:38:42 -06:00
|
|
|
fn main() {}
|