1 error[E0507]: cannot move out of `val`, a captured variable in an `FnMut` closure
2 --> $DIR/issue-87456-point-to-closure.rs:10:28
4 LL | let val = String::new();
5 | --- captured outer variable
10 LL | | let _foo: String = val;
13 | | move occurs because `val` has type `String`, which does not implement the `Copy` trait
14 | | help: consider borrowing here: `&val`
18 | |_____- captured by this `FnMut` closure
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0507`.