1 error[E0277]: `T` doesn't implement `std::fmt::Display`
2 --> $DIR/generic-associated-types-where.rs:21:5
4 LL | type Assoc2<T> = Vec<T>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^ `T` cannot be formatted with the default formatter
7 = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
8 help: consider restricting type parameter `T`
10 LL | type Assoc2<T: std::fmt::Display> = Vec<T>;
13 error[E0276]: impl has stricter requirements than trait
14 --> $DIR/generic-associated-types-where.rs:23:5
17 | --------------- definition of `Assoc3` from trait
19 LL | type Assoc3<T> where T: Iterator = Vec<T>;
20 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `T: Iterator`
22 error: aborting due to 2 previous errors
24 Some errors have detailed explanations: E0276, E0277.
25 For more information about an error, try `rustc --explain E0276`.