Incorrect compiler hints for traits with methods defined using raw identifiers #65634
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.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
(Playground)
Error:
async::struct(r#fn {})
should ber#async::r#struct(&r#fn {})
andawait::struct(r#fn {})
should ber#await::r#struct(&r#fn {})
. It also misses that function signatures require notself
but&self
, however this also happens when not using raw identifiers, so I will open another issue for this case.The text was updated successfully, but these errors were encountered: