1 2 3 4 5 6 7 8 9
fn main() { let n = 0; struct Foo; impl Foo { const N: usize = n; //~^ ERROR attempt to use a non-constant value } }