#![feature(min_const_generics)] fn test() {} fn ok() -> [u8; M] { [0; { M }] } struct Break0([u8; { N + 1 }]); //~^ ERROR generic parameters may not be used in const operations struct Break1([u8; { { N } }]); //~^ ERROR generic parameters may not be used in const operations fn break2() { let _: [u8; N + 1]; //~^ ERROR generic parameters may not be used in const operations } fn break3() { let _ = [0; N + 1]; //~^ ERROR generic parameters may not be used in const operations } trait Foo { const ASSOC: usize; } fn main() {}