fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0277]: expected a `std::ops::Fn<(isize,)>` closure, found `S` 2 --> $DIR/unboxed-closures-fnmut-as-fn.rs:28:21 3 | 4LL | fn call_it<F:Fn(isize)->isize>(f: &F, x: isize) -> isize { 5 | ------- ---------------- required by this bound in `call_it` 6... 7LL | let x = call_it(&S, 22); 8 | ^^ expected an `Fn<(isize,)>` closure, found `S` 9 | 10 = help: the trait `std::ops::Fn<(isize,)>` is not implemented for `S` 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0277`.