Nonsensical extra diagnostics for E0425 in static methods #60057
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code (playground):
produces the following error:
First,
help
is wrong, because this is a static method and self is not available in scope. Second it is not clear why a line abovehelp
is talking aboutself
at all.The text was updated successfully, but these errors were encountered: