blob: 4409611c200fc2f392dd2a3bc4c764ef001259d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#![deny(non_upper_case_globals)]
trait Trait {
const item: usize;
//~^ ERROR associated constant `item` should have an upper case name [non_upper_case_globals]
}
struct Foo;
impl Trait for Foo {
const item: usize = 5;
// ^^^ there should be no error here (in the trait `impl`)
}
fn main() {}
|