1 error[E0308]: mismatched types
2 --> $DIR/constraint-assoc-type-suggestion.rs:12:23
4 LL | let b: Vec<i32> = a;
5 | -------- ^ expected struct `Vec`, found associated type
9 = note: expected struct `Vec<i32>`
10 found associated type `<T as X>::Y<i32>`
11 help: consider constraining the associated type `<T as X>::Y<i32>` to `Vec<i32>`
13 LL | fn f<T: X<Y<i32> = Vec<i32>>>(a: T::Y<i32>) {
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0308`.