confusing type mismatch error when external crates introduce additional trait implementations #96972
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
Consider the following code:
The error message output here is very nice and easy to understand:
Now lets add a dependency on an external crate (inlined here) (playground):
Once that's done the diagnostic regresses significantly, to the point where it made me suspect an incremental or a similarly serious bug somewhere
I think I would've preferred a plain old “trait is not implemented” error here.
The text was updated successfully, but these errors were encountered: