1 fn a<F:Fn(isize, isize) -> isize>(mut f: F) {
3 f(1, 2); //~ ERROR cannot borrow `f` as immutable
6 fn b<F:FnMut(isize, isize) -> isize>(f: F) {
7 f(1, 2); //~ ERROR cannot borrow `f` as mutable, as it is not declared as mutable
10 fn c<F:FnOnce(isize, isize) -> isize>(f: F) {
12 f(1, 2); //~ ERROR use of moved value
17 fn use_mut<T>(_: &mut T) { }