-
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
Showing
5 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
src/test/ui/associated-types/higher-ranked-projection.bad.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,12 +1,12 @@ | ||
error: implementation of `Mirror` is not general enough | ||
error[E0308]: mismatched types | ||
--> $DIR/higher-ranked-projection.rs:25:5 | ||
| | ||
LL | foo(()); | ||
| ^^^ | ||
| ^^^ one type is more general than the other | ||
| | ||
= note: Due to a where-clause on `foo`, | ||
= note: `Mirror` would have to be implemented for the type `&'0 ()`, for any lifetime `'0` | ||
= note: but `Mirror` is actually implemented for the type `&'1 ()`, for some specific lifetime `'1` | ||
= note: expected type `&'a ()` | ||
found type `&()` | ||
|
||
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
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,12 +1,12 @@ | ||
error: implementation of `Foo` is not general enough | ||
error[E0308]: mismatched types | ||
--> $DIR/hrtb-perfect-forwarding.rs:46:5 | ||
| | ||
LL | foo_hrtb_bar_not(&mut t); //~ ERROR not general enough | ||
| ^^^^^^^^^^^^^^^^ | ||
LL | foo_hrtb_bar_not(&mut t); //~ ERROR mismatched types | ||
| ^^^^^^^^^^^^^^^^ one type is more general than the other | ||
| | ||
= note: Due to a where-clause on `foo_hrtb_bar_not`, | ||
= note: `&mut T` must implement `Foo<&'0 isize>`, for any lifetime `'0` | ||
= note: but `&mut T` actually implements `Foo<&'1 isize>`, for some specific lifetime `'1` | ||
= note: expected type `Bar<&'a isize>` | ||
found type `Bar<&'b isize>` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. |