Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report nicer errors for HRTB NLL errors from queries
- Loading branch information
1 parent
0c388b0
commit d563a63
Showing
29 changed files
with
473 additions
and
101 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
8 changes: 6 additions & 2 deletions
8
src/test/ui/associated-types/higher-ranked-projection.bad.nll.stderr
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,8 +1,12 @@ | ||
error: higher-ranked subtype error | ||
error[E0308]: mismatched types | ||
--> $DIR/higher-ranked-projection.rs:25:5 | ||
| | ||
LL | foo(()); | ||
| ^^^^^^^ | ||
| ^^^^^^^ one type is more general than the other | ||
| | ||
= note: expected type `&'a ()` | ||
found reference `&()` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |
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
Oops, something went wrong.