-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9eeb60
commit 69fc6d8
Showing
3 changed files
with
47 additions
and
9 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
25 changes: 22 additions & 3 deletions
25
src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.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,14 +1,33 @@ | ||
error: higher-ranked subtype error | ||
--> $DIR/issue-57611-trait-alias.rs:21:9 | ||
--> $DIR/issue-57611-trait-alias.rs:25:9 | ||
| | ||
LL | |x| x | ||
| ^^^^^ | ||
|
||
error: higher-ranked subtype error | ||
--> $DIR/issue-57611-trait-alias.rs:21:9 | ||
--> $DIR/issue-57611-trait-alias.rs:25:9 | ||
| | ||
LL | |x| x | ||
| ^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
error[E0308]: mismatched types | ||
--> $DIR/issue-57611-trait-alias.rs:17:16 | ||
| | ||
LL | type Bar = impl Baz<Self, Self>; | ||
| ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other | ||
| | ||
= note: expected type `for<'r> Fn<(&'r X,)>` | ||
found type `Fn<(&'static X,)>` | ||
|
||
error[E0308]: mismatched types | ||
--> $DIR/issue-57611-trait-alias.rs:17:16 | ||
| | ||
LL | type Bar = impl Baz<Self, Self>; | ||
| ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other | ||
| | ||
= note: expected type `FnOnce<(&X,)>` | ||
found type `FnOnce<(&'static X,)>` | ||
|
||
error: aborting due to 4 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0308`. |