Unfelpful error when trying to call member function as free function #66782
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
D-newcomer-roadblock
Diagnostics: Confusing error or lint; hard to understand for new users.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I just spent far too long trying to figure out the problem with the following (reduced) code
Which produces the error:
While I don't expect the code to compile, perhaps mention when trying to call
a(self,...)
that I should be callingself.a(...)
?The text was updated successfully, but these errors were encountered: