forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#89914 - jackh726:gat_genericboundfailure, r…
…=estebank Emit impl difference error for GenericBoundFailure too Fixes rust-lang#86787 r? ``@estebank``
- Loading branch information
Showing
5 changed files
with
22 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
error[E0309]: the associated type `<Left as HasChildrenOf>::T` may not live long enough | ||
error: `impl` associated type signature for `TRef` doesn't match `trait` associated type signature | ||
--> $DIR/issue-86787.rs:23:5 | ||
| | ||
LL | type TRef<'a>; | ||
| -------------- expected | ||
... | ||
LL | / type TRef<'a> | ||
LL | | | ||
LL | | | ||
LL | | where | ||
LL | | <Left as HasChildrenOf>::T: 'a, | ||
LL | | <Right as HasChildrenOf>::T: 'a | ||
| | - help: consider adding a where clause: `, <Left as HasChildrenOf>::T: 'a` | ||
LL | | = Either<&'a Left::T, &'a Right::T>; | ||
| |________________________________________^ ...so that the definition in impl matches the definition from the trait | ||
| |________________________________________^ found | ||
|
||
error[E0309]: the associated type `<Right as HasChildrenOf>::T` may not live long enough | ||
error: `impl` associated type signature for `TRef` doesn't match `trait` associated type signature | ||
--> $DIR/issue-86787.rs:23:5 | ||
| | ||
LL | type TRef<'a>; | ||
| -------------- expected | ||
... | ||
LL | / type TRef<'a> | ||
LL | | | ||
LL | | | ||
LL | | where | ||
LL | | <Left as HasChildrenOf>::T: 'a, | ||
LL | | <Right as HasChildrenOf>::T: 'a | ||
| | - help: consider adding a where clause: `, <Right as HasChildrenOf>::T: 'a` | ||
LL | | = Either<&'a Left::T, &'a Right::T>; | ||
| |________________________________________^ ...so that the definition in impl matches the definition from the trait | ||
| |________________________________________^ found | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0309`. |