invalid suggestion: self.field cannot be used with format args capture #98241
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
Given the following code:
The current output is:
Ideally the output should look like:
Note that
{self.foo}
is not accepted (yet..?) by the compiler, so we should suggest something likeformat!("{}", self.foo)
I guess?The text was updated successfully, but these errors were encountered: