1 error[E0631]: type mismatch in function arguments
2 --> $DIR/fn-variance-1.rs:11:15
4 LL | fn takes_mut(x: &mut isize) { }
5 | --------------------------- found signature of `for<'r> fn(&'r mut isize) -> _`
7 LL | fn apply<T, F>(t: T, f: F) where F: FnOnce(T) {
8 | --------- required by this bound in `apply`
10 LL | apply(&3, takes_mut);
11 | ^^^^^^^^^ expected signature of `fn(&{integer}) -> _`
13 error[E0631]: type mismatch in function arguments
14 --> $DIR/fn-variance-1.rs:15:19
16 LL | fn takes_imm(x: &isize) { }
17 | ----------------------- found signature of `for<'r> fn(&'r isize) -> _`
19 LL | fn apply<T, F>(t: T, f: F) where F: FnOnce(T) {
20 | --------- required by this bound in `apply`
22 LL | apply(&mut 3, takes_imm);
23 | ^^^^^^^^^ expected signature of `fn(&mut {integer}) -> _`
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0631`.