MIR borrowck: diagnostic for moves out of patterns should be improved #45699
Labels
A-borrow-checker
Area: The borrow checker
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
NLL-diagnostics
Working towards the "diagnostic parity" goal
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
When a
match
expression orlet
statement is used on an lvalue with no ability to move things out, AST borrowck displays a single unified error message while MIR borrowck displays an error message for each binding:Displays the following errors:
I think this is fairly low priority, but we do want error parity.
The text was updated successfully, but these errors were encountered: