fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
556 B14 linesraw
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`.