A closure captures a variable that is already borrowed elsewhere in the enclosing scope. The conflicting borrow must end before the closure can capture the same variable.
E0500
rust A closure captures a variable that is already borrowed elsewhere in the enclosing scope. The conflicting borrow must end before the closure can capture the same variable.