error[E0308]: mismatched types --> $DIR/constraint-assoc-type-suggestion.rs:10:23 | LL | let b: Vec = a; | -------- ^ expected `Vec`, found associated type | | | expected due to this | = note: expected struct `Vec` found associated type `::Y` help: consider constraining the associated type `::Y` to `Vec` | LL | fn f = Vec>>(a: T::Y) { | +++++++++++++++++++ error: aborting due to previous error For more information about this error, try `rustc --explain E0308`.