-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change inference var check to be in project_type
- Loading branch information
Showing
7 changed files
with
27 additions
and
32 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
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,22 +1,9 @@ | ||
error[E0308]: mismatched types | ||
--> $DIR/issue-91762.rs:25:45 | ||
error[E0282]: type annotations needed | ||
--> $DIR/issue-91762.rs:25:15 | ||
| | ||
LL | / pub trait FunctorExt<T>: Sized { | ||
LL | | type Base: Functor<With<T> = Self>; | ||
LL | | | ||
LL | | fn fmap<U>(self) { | ||
... | | ||
LL | | ret = <Self::Base as Functor>::fmap(arg); | ||
| | ^^^ expected associated type, found type parameter `Self` | ||
LL | | | ||
LL | | } | ||
LL | | } | ||
| |_- this type parameter | ||
| | ||
= note: expected associated type `<<Self as FunctorExt<T>>::Base as Functor>::With<_>` | ||
found type parameter `Self` | ||
= note: you might be missing a type parameter or trait bound | ||
LL | ret = <Self::Base as Functor>::fmap(arg); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type parameter `T` declared on the associated function `fmap` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0308`. | ||
For more information about this error, try `rustc --explain E0282`. |