1 // Test that correct syntax is used in suggestion to constrain associated type
3 #![feature(generic_associated_types)]
9 fn f<T: X>(a: T::Y<i32>) {
10 //~^ HELP consider constraining the associated type `<T as X>::Y<i32>` to `Vec<i32>`
11 //~| SUGGESTION Y<i32> = Vec<i32>>
13 //~^ ERROR mismatched types