2020-09-02 07:40:56 +00:00
|
|
|
error[E0277]: expected a `FnMut<(_, char)>` closure, found `()`
|
2019-09-16 04:58:20 +00:00
|
|
|
--> $DIR/issue-23966.rs:2:32
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
|
LL | "".chars().fold(|_, _| (), ());
|
2021-09-07 11:30:53 +00:00
|
|
|
| ---- ^^ expected an `FnMut<(_, char)>` closure, found `()`
|
|
|
|
| |
|
|
|
|
| required by a bound introduced by this call
|
2018-08-12 19:21:53 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= help: the trait `FnMut<(_, char)>` is not implemented for `()`
|
2021-10-05 23:04:09 +00:00
|
|
|
note: required by a bound in `fold`
|
|
|
|
--> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|