#![feature(generic_associated_types)] mod error1 { trait X { type Y<'a>; } fn f1<'a>(arg : Box>) {} //~^ ERROR: expected expression, found `)` } mod error2 { trait X { type Y<'a>; } fn f2<'a>(arg : Box>) {} //~^ ERROR: expected one of } fn main() {}