fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
589 B15 linesraw
1error[E0277]: expected a `FnMut<(_, char)>` closure, found `()`
2  --> $DIR/issue-23966.rs:2:32
3   |
4LL |     "".chars().fold(|_, _| (), ());
5   |                ----            ^^ expected an `FnMut<(_, char)>` closure, found `()`
6   |                |
7   |                required by a bound introduced by this call
8   |
9   = help: the trait `FnMut<(_, char)>` is not implemented for `()`
10note: required by a bound in `fold`
11  --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.