1 #![feature(inline_const)]
6 // Paren generic args in AnonConst
7 fn a() -> [u8; foo::()] {
8 //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
9 //~| ERROR mismatched types
13 // Paren generic args in ConstGeneric
14 fn b<const C: u8()>() {}
15 //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
17 // Paren generic args in AnonymousReportError
19 //~^ ERROR parenthesized type parameters may only be used with a `Fn` trait
20 //~| ERROR defaults for type parameters are only allowed in
21 //~| WARN this was previously accepted
23 // Elided lifetime in path in ConstGeneric
25 //~^ ERROR missing lifetime specifier
26 //~| ERROR `S<'static>` is forbidden as the type of a const generic parameter