Better message when illegal moves result from a binding #4715
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lifetimes
Area: Lifetimes / regions
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Milestone
When you have a by-move binding in a match, it causes a move of the discriminant. It'd be nice if any errors resulting from this move identified the binding that caused the move. This requires some modifications to
moves
(to identify the binding and track it),liveness
(to report the error in terms of the binding) and possiblyborrowck
(which also can report errors related to illegal moves)The text was updated successfully, but these errors were encountered: