MIR borrowck: closure borrow errors mention the closure instead of the upvar #46626
Labels
A-borrow-checker
Area: The borrow checker
A-closures
Area: Closures (`|…| { … }`)
A-diagnostics
Area: Messages for errors, warnings, and lints
e.g. the test for E0504:
Gives the following errors with
-Z borrowck=compare
:If the closure is big, it can be pretty annoying to find the offending upvar reference, so the AST error message is better.
The text was updated successfully, but these errors were encountered: