trait Trait { #[type_const] //~^ ERROR experimental const ASSOC: usize; } // FIXME(mgca): add suggestion for mgca to this error fn foo() -> [u8; ::ASSOC] { //~^ ERROR generic parameters may not be used in const operations loop {} } fn main() {}