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
8 | -- captured by this `FnMut` closure
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`
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0507`.