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