Suggest a missing field when the rest of the field is found #87938
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=2c9af7b21295b19d151a109261981cd2
The current output is:
Ideally the output should look like:
We already provide a suggestion for similar names, for example,
brav0
is suggested to replace it forbravo
.Analogous to that, when the rest of the field (
alpha
&charlie
) is mentioned, suggesting to replace the miswritten field (beta
) for the missing field (bravo
) can be helpful for users.The text was updated successfully, but these errors were encountered: