Wrong suggestions for typos on variables that have the same name as struct fields #97311
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:
1.63.0-nightly (2022-05-22)
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=bb6ee98b3c92917f9eab8607bf3f5deb
The current output is:
This suggestion can cause compiler errors.
Ideally the output should look like:
help
shouldn't be emitted.or should look like
println!("{}", self.config)
.The text was updated successfully, but these errors were encountered: