1 error[E0309]: the associated type `<Left as HasChildrenOf>::T` may not live long enough
2 --> $DIR/issue-86787.rs:23:5
8 LL | | <Left as HasChildrenOf>::T: 'a,
9 LL | | <Right as HasChildrenOf>::T: 'a
10 | | - help: consider adding a where clause: `, <Left as HasChildrenOf>::T: 'a`
11 LL | | = Either<&'a Left::T, &'a Right::T>;
12 | |________________________________________^ ...so that the definition in impl matches the definition from the trait
14 error[E0309]: the associated type `<Right as HasChildrenOf>::T` may not live long enough
15 --> $DIR/issue-86787.rs:23:5
21 LL | | <Left as HasChildrenOf>::T: 'a,
22 LL | | <Right as HasChildrenOf>::T: 'a
23 | | - help: consider adding a where clause: `, <Right as HasChildrenOf>::T: 'a`
24 LL | | = Either<&'a Left::T, &'a Right::T>;
25 | |________________________________________^ ...so that the definition in impl matches the definition from the trait
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0309`.