1 error[E0499]: cannot borrow `*f` as mutable more than once at a time
2 --> $DIR/moves-based-on-type-no-recursive-stack-closure.rs:20:27
5 | ----- ^ - first borrow ends here
7 | | second mutable borrow occurs here
8 | first mutable borrow occurs here
10 error[E0382]: use of moved value: `f`
11 --> $DIR/moves-based-on-type-no-recursive-stack-closure.rs:32:5
13 LL | let mut r = R {c: Box::new(f)};
16 | ^ value used here after move
18 = note: move occurs because `f` has type `F`, which does not implement the `Copy` trait
20 error: aborting due to 2 previous errors
22 Some errors occurred: E0382, E0499.
23 For more information about an error, try `rustc --explain E0382`.