Suggest tuple struct syntax when using struct incorrectly #57242
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-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
P-medium
Medium priority
As per #57047 (comment), when encountering a tuple struct being used with the wrong syntax, suggest an appropriate fix:
instead of
The text was updated successfully, but these errors were encountered: