Goofy suggestion when trying to use a raw ptr receiver and also the self keyword in the body #128042
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.
I tried this code:
I get this diagnostic, which is all good until it tries to construct a suggestion:
This suggestion has behaved like this since it was added in 1.47.
The text was updated successfully, but these errors were encountered: