// Test that we report an error if the trait ref in a qualified type // uses invalid type arguments. trait Foo { type Bar; fn get_bar(&self) -> Self::Bar; } fn f>(t: &T) { let u: >::Bar = t.get_bar(); //~^ ERROR the trait bound `T: Foo` is not satisfied } fn main() { }