// Test that correct syntax is used in suggestion to constrain associated type trait X { type Y; } fn f(a: T::Y) { //~^ HELP consider constraining the associated type `::Y` to `Vec` //~| SUGGESTION Y = Vec> let b: Vec = a; //~^ ERROR mismatched types } fn main() {}