1 error[E0502]: cannot borrow `f` as immutable because it is also borrowed as mutable
2 --> $DIR/borrowck-unboxed-closures.rs:3:5
5 | - mutable borrow occurs here
7 | ^ immutable borrow occurs here
10 | - mutable borrow ends here
12 error[E0596]: cannot borrow immutable argument `f` as mutable
13 --> $DIR/borrowck-unboxed-closures.rs:7:5
15 LL | fn b<F:FnMut(isize, isize) -> isize>(f: F) {
16 | - help: make this binding mutable: `mut f`
18 | ^ cannot borrow mutably
20 error[E0382]: use of moved value: `f`
21 --> $DIR/borrowck-unboxed-closures.rs:12:5
26 | ^ value used here after move
28 = note: move occurs because `f` has type `F`, which does not implement the `Copy` trait
30 error: aborting due to 3 previous errors
32 Some errors have detailed explanations: E0382, E0502, E0596.
33 For more information about an error, try `rustc --explain E0382`.