Error message for incorrectly calling method using arbitrary self types is bad #60086
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(playground) gives an error:
The error isn't that the trait is unimplemented for
Bar
, it's that the method requiresself: Pin<&Self>
and we're trying to pass justSelf
. The error message should mention the mismatched self-type (and for the builtin types that are supported by arbitrary self types it might even be able to generate proposed fixes).The text was updated successfully, but these errors were encountered: