]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closures-fnmut-as-fn.stderr
CommitLineData
b7449926
XL
1error[E0277]: expected a `std::ops::Fn<(isize,)>` closure, found `S`
2 --> $DIR/unboxed-closures-fnmut-as-fn.rs:38:13
3 |
4LL | 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`
8note: required by `call_it`
9 --> $DIR/unboxed-closures-fnmut-as-fn.rs:33:1
10 |
11LL | fn call_it<F:Fn(isize)->isize>(f: &F, x: isize) -> isize {
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.