-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type mismatch mentioning trait as type #72217
Comments
This looks similar to what I reported in #59865 |
Here we don't account for anything other than type mismatches rust/src/librustc_infer/infer/error_reporting/mod.rs Lines 1404 to 1433 in 2002eba
which means that later we use the generic rust/src/librustc_infer/infer/error_reporting/mod.rs Lines 1447 to 1448 in 2002eba
We need to account for |
I'd like to work on this |
@ayrtonm do not hesitate to reach out if you need help! |
Do we need to get the correct prefix strings from the contents of |
I believe they can be just "trait". |
…=estebank fixed error reporting for mismatched traits mismatched traits were previously referred to as types closes rust-lang#72217
Causes the following error:
This is somewhat confusing, especially since
std::cmp::PartialEq
is not a type.This issue has been assigned to @ayrtonm via this comment.
The text was updated successfully, but these errors were encountered: