Physics, asked by arulkumaran734, 11 months ago

cannot move out of captured outer variable in an `FnMut` closure

Answers

Answered by Anonymous
3

Answer:

Hello all, new to rust and encountering the error cannot move out of captured outer variable in anFnMutclosure with the following program 30

I know that it’s img that causes this and I’ve tried using, inside the map, let img = &mut img; however that gives a different error of cannot infer an appropriate lifetime for borrow expression due to conflicting requirements

I was hoping someone could help me solve this as I’m new to rust and can’t quite figure it out.

Thanks in advance!

Similar questions