Rustc says method doesn't exist instead of hinting at unsatisfied trait bounds #71505
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-terse
Diagnostics: An error or lint that doesn't give enough information about the problem at hand.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As described in #67642 (comment) when one attempts to call a triat method with unsatisfied bounds, the message says the method doesn't exist instead of explaining that the bounds weren't satisfied.
I tried this code:
I expected to see this happen: Rustc message saying that
Eq
andHash
aren't satisfied.Instead, this happened: Rustc says that
extend
doesn't exist.Meta
The bug is in nightly
Tested on the playground:
The text was updated successfully, but these errors were encountered: