Auto-fix wrongly suggesting scope issues during struct manipulations #71027
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hi, there's a auto-fix bug. I'm using VSCode. The code explains itself:
I tried this code:
I expected to see the auto-fix suggest ways to print Point correctly.
Instead, auto-fix in VSCode suggests changing x and y to s in line 23.
However, the error message from rust displays fine.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: