1 error[E0277]: expected a `Fn<(isize,)>` closure, found `S`
2 --> $DIR/unboxed-closures-fnmut-as-fn.rs:27:21
4 LL | let x = call_it(&S, 22);
5 | ------- ^^ expected an `Fn<(isize,)>` closure, found `S`
7 | required by a bound introduced by this call
9 = help: the trait `Fn<(isize,)>` is not implemented for `S`
10 = note: `S` implements `FnMut`, but it must implement `Fn`, which is more general
11 note: required by a bound in `call_it`
12 --> $DIR/unboxed-closures-fnmut-as-fn.rs:22:14
14 LL | fn call_it<F:Fn(isize)->isize>(f: &F, x: isize) -> isize {
15 | ^^^^^^^^^^^^^^^^ required by this bound in `call_it`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0277`.