Binary operators still have worse trait error information than their corrosponding operators. #135781
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
compare to this code:
that gives the exact trait bounds that were not satisfied (in particular, iterators over arrays do not implement PartialEq).
this isn't the most realistic case, but i wanted to repro it without external dependencies, and there's a different diagnostic that triggers if the type is defined in the same crate as the error.
Other cases
Rust Version
Anything else?
related to #125631
this time it would be nice if the logic could be unified somehow.
The text was updated successfully, but these errors were encountered: