Collect multiple missing fields on struct pattern into a single diagnostic #47457
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
When confusing a Fn-like struct with a regular struct in an
if let
pattern, the output leaves a lot to be desired:Current output
We should probably collect all these errors into a single diagnostic error:
Even better if there was only one diagnostic.
The text was updated successfully, but these errors were encountered: