|
1 | | -error[E0309]: the associated type `<Left as HasChildrenOf>::T` may not live long enough |
| 1 | +error: `impl` associated type signature for `TRef` doesn't match `trait` associated type signature |
2 | 2 | --> $DIR/issue-86787.rs:23:5 |
3 | 3 | | |
| 4 | +LL | type TRef<'a>; |
| 5 | + | -------------- expected |
| 6 | +... |
4 | 7 | LL | / type TRef<'a> |
5 | 8 | LL | | |
6 | 9 | LL | | |
7 | 10 | LL | | where |
8 | 11 | LL | | <Left as HasChildrenOf>::T: 'a, |
9 | 12 | LL | | <Right as HasChildrenOf>::T: 'a |
10 | | - | | - help: consider adding a where clause: `, <Left as HasChildrenOf>::T: 'a` |
11 | 13 | LL | | = Either<&'a Left::T, &'a Right::T>; |
12 | | - | |________________________________________^ ...so that the definition in impl matches the definition from the trait |
| 14 | + | |________________________________________^ found |
13 | 15 |
|
14 | | -error[E0309]: the associated type `<Right as HasChildrenOf>::T` may not live long enough |
| 16 | +error: `impl` associated type signature for `TRef` doesn't match `trait` associated type signature |
15 | 17 | --> $DIR/issue-86787.rs:23:5 |
16 | 18 | | |
| 19 | +LL | type TRef<'a>; |
| 20 | + | -------------- expected |
| 21 | +... |
17 | 22 | LL | / type TRef<'a> |
18 | 23 | LL | | |
19 | 24 | LL | | |
20 | 25 | LL | | where |
21 | 26 | LL | | <Left as HasChildrenOf>::T: 'a, |
22 | 27 | LL | | <Right as HasChildrenOf>::T: 'a |
23 | | - | | - help: consider adding a where clause: `, <Right as HasChildrenOf>::T: 'a` |
24 | 28 | LL | | = Either<&'a Left::T, &'a Right::T>; |
25 | | - | |________________________________________^ ...so that the definition in impl matches the definition from the trait |
| 29 | + | |________________________________________^ found |
26 | 30 |
|
27 | 31 | error: aborting due to 2 previous errors |
28 | 32 |
|
29 | | -For more information about this error, try `rustc --explain E0309`. |
|
0 commit comments