]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error[E0277]: expected a `std::ops::Fn<(isize,)>` closure, found `S` |
2 | --> $DIR/unboxed-closures-fnmut-as-fn.rs:38:13 | |
3 | | | |
4 | LL | let x = call_it(&S, 22); | |
5 | | ^^^^^^^ expected an `Fn<(isize,)>` closure, found `S` | |
6 | | | |
7 | = help: the trait `std::ops::Fn<(isize,)>` is not implemented for `S` | |
8 | note: required by `call_it` | |
9 | --> $DIR/unboxed-closures-fnmut-as-fn.rs:33:1 | |
10 | | | |
11 | LL | fn call_it<F:Fn(isize)->isize>(f: &F, x: isize) -> isize { | |
12 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
13 | ||
14 | error: aborting due to previous error | |
15 | ||
16 | For more information about this error, try `rustc --explain E0277`. |