1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#![feature(generic_associated_types)] mod error1 { trait X { type Y<'a>; } fn f1<'a>(arg : Box<dyn X< 1 = 32 >>) {} //~^ ERROR: expected expression, found `)` } mod error2 { trait X { type Y<'a>; } fn f2<'a>(arg : Box<dyn X< { 1 } = 32 >>) {} //~^ ERROR: expected one of } fn main() {}