Suboptimal error message when matching on a tuple struct using a private constructor #124569
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.
Code
Current output
Desired output
Rationale and extra context
I've used Rust for a while, and I just discovered that this is an option that lets you match on tuple structs with private fields. It would be great if the compiler could recommend this as a solution.
Other cases
Rust Version
Anything else?
No response
The text was updated successfully, but these errors were encountered: