You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0507]: cannot move out of captured outer variable in an `FnMut` closure
--> foo.rs:12:9
|
12 | move || {
| ^^^^^^^ cannot move out of captured outer variable in an `FnMut` closure
error: aborting due to previous error
I recently found this error when I misspelled a captured variable as connnections (should be connections) and it'd be mega-helpful if the error message could mention which captured variable cannot be moved out of. (a span pointing at the variable would also work).
For this code:
it yields the error:
I recently found this error when I misspelled a captured variable as
connnections
(should beconnections
) and it'd be mega-helpful if the error message could mention which captured variable cannot be moved out of. (a span pointing at the variable would also work).cc @jonathandturner
The text was updated successfully, but these errors were encountered: