warning: the feature `generic_associated_types` is incomplete and may not be safe to use and/or cause compiler crashes --> $DIR/constraint-assoc-type-suggestion.rs:3:12 | LL | #![feature(generic_associated_types)] | ^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(incomplete_features)]` on by default = note: see issue #44265 for more information error[E0308]: mismatched types --> $DIR/constraint-assoc-type-suggestion.rs:13:23 | LL | let b: Vec = a; | -------- ^ expected struct `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; 1 warning emitted For more information about this error, try `rustc --explain E0308`.