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