Malformed suggestion for E0061 when in macro context and method is a macro token #140512
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
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
Current output
Desired output
Should not add the extra
::<Self>
in the suggestion.Rationale and extra context
<Self>::<Self>
is not valid Rust :)Other cases
Rust Version
Anything else?
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=cb4f2a307c6deb3ae21c782eb50d171c
The text was updated successfully, but these errors were encountered: