]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-86787.stderr
Rollup merge of #88353 - jhpratt:stabilize-array-as-ref, r=joshtriplett
[rust.git] / src / test / ui / generic-associated-types / issue-86787.stderr
1 error[E0309]: the associated type `<Left as HasChildrenOf>::T` may not live long enough
2   --> $DIR/issue-86787.rs:23:5
3    |
4 LL | /     type TRef<'a>
5 LL | |
6 LL | |
7 LL | |     where
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
13
14 error[E0309]: the associated type `<Right as HasChildrenOf>::T` may not live long enough
15   --> $DIR/issue-86787.rs:23:5
16    |
17 LL | /     type TRef<'a>
18 LL | |
19 LL | |
20 LL | |     where
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
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0309`.