Unify errors for Unit pattern on Tuple and Struct variants #63983
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code Example (playground):
Currently we provide a "do you mean..." for the
Struct
but not for theTuple
. We probably should provide one for both.The text was updated successfully, but these errors were encountered: