blob: 5466726fc9d4b15d8763a63b4944871028c716f5 [file] [log] [blame] [edit]
//@ run-rustfix
#![allow(dead_code, non_upper_case_globals)]
fn main() {
const n: usize = 0;
struct Foo;
impl Foo {
const N: usize = n;
//~^ ERROR attempt to use a non-constant value
}
}