]> git.proxmox.com Git - rustc.git/blame - src/test/ui/unboxed-closures/unboxed-closures-fnmut-as-fn.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closures-fnmut-as-fn.stderr
CommitLineData
1b1a35ee 1error[E0277]: expected a `Fn<(isize,)>` closure, found `S`
ee023bcb 2 --> $DIR/unboxed-closures-fnmut-as-fn.rs:27:21
b7449926
XL
3 |
4LL | let x = call_it(&S, 22);
c295e0f8
XL
5 | ------- ^^ expected an `Fn<(isize,)>` closure, found `S`
6 | |
7 | required by a bound introduced by this call
b7449926 8 |
1b1a35ee 9 = help: the trait `Fn<(isize,)>` is not implemented for `S`
ee023bcb 10 = note: `S` implements `FnMut`, but it must implement `Fn`, which is more general
94222f64 11note: required by a bound in `call_it`
ee023bcb 12 --> $DIR/unboxed-closures-fnmut-as-fn.rs:22:14
94222f64
XL
13 |
14LL | fn call_it<F:Fn(isize)->isize>(f: &F, x: isize) -> isize {
15 | ^^^^^^^^^^^^^^^^ required by this bound in `call_it`
b7449926
XL
16
17error: aborting due to previous error
18
19For more information about this error, try `rustc --explain E0277`.