mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
12 lines
204 B
Rust
12 lines
204 B
Rust
#![deny(non_upper_case_globals)]
|
|
#![allow(dead_code)]
|
|
|
|
struct Foo;
|
|
|
|
impl Foo {
|
|
const not_upper: bool = true;
|
|
}
|
|
//~^^ ERROR associated constant `not_upper` should have an upper case name
|
|
|
|
fn main() {}
|