Handle unit struct with same name as field in pattern destructuring #55631
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code
generate the following error
instead of
The text was updated successfully, but these errors were encountered: