1 error[E0277]: the trait bound `<T as Parent>::Assoc: Child<A>` is not satisfied
2 --> $DIR/missing-assoc-type-bound-restriction.rs:17:19
7 LL | type Assoc: Child<Self::Ty>;
8 | --------------- required by this bound in `Parent`
10 LL | impl<A, T: Parent<Ty = A>> Parent for ParentWrapper<T> {
11 | ^^^^^^ - help: consider further restricting the associated type: `where <T as Parent>::Assoc: Child<A>`
13 | the trait `Child<A>` is not implemented for `<T as Parent>::Assoc`
15 error[E0277]: the trait bound `<T as Parent>::Assoc: Child<A>` is not satisfied
16 --> $DIR/missing-assoc-type-bound-restriction.rs:20:18
21 LL | type Assoc: Child<Self::Ty>;
22 | --------------- required by this bound in `Parent`
24 LL | impl<A, T: Parent<Ty = A>> Parent for ParentWrapper<T> {
25 | - help: consider further restricting the associated type: `where <T as Parent>::Assoc: Child<A>`
27 LL | type Assoc = ChildWrapper<T::Assoc>;
28 | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Child<A>` is not implemented for `<T as Parent>::Assoc`
30 = note: required because of the requirements on the impl of `Child<A>` for `ChildWrapper<<T as Parent>::Assoc>`
31 = note: required because of the requirements on the impl of `Child<<ParentWrapper<T> as Parent>::Ty>` for `<ParentWrapper<T> as Parent>::Assoc`
33 error[E0277]: the trait bound `<T as Parent>::Assoc: Child<A>` is not satisfied
34 --> $DIR/missing-assoc-type-bound-restriction.rs:20:5
39 LL | type Assoc: Child<Self::Ty>;
40 | --------------- required by this bound in `Parent`
42 LL | impl<A, T: Parent<Ty = A>> Parent for ParentWrapper<T> {
43 | - help: consider further restricting the associated type: `where <T as Parent>::Assoc: Child<A>`
45 LL | type Assoc = ChildWrapper<T::Assoc>;
46 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Child<A>` is not implemented for `<T as Parent>::Assoc`
48 error: aborting due to 3 previous errors
50 For more information about this error, try `rustc --explain E0277`.