1 error[E0507]: cannot move out of `var`, a captured variable in an `FnMut` closure
2 --> $DIR/option-content-move2.rs:9:9
4 LL | let mut var = None;
5 | ------- captured outer variable
8 LL | | // Shouldn't suggest `move ||.as_ref()` here
10 | | ^^^^^^^ move out of `var` occurs here
12 LL | | var = Some(NotCopyable);
15 | | variable moved due to use in closure
16 | | move occurs because `var` has type `Option<NotCopyable>`, which does not implement the `Copy` trait
19 | |_____- captured by this `FnMut` closure
21 error: aborting due to previous error
23 For more information about this error, try `rustc --explain E0507`.