1 error[E0308]: mismatched types
2 --> $DIR/issue-3044.rs:3:35
4 LL | needlesArr.iter().fold(|x, y| {
5 | ___________________________________^
7 | |_____^ expected closure, found `()`
9 = note: expected closure `[closure@$DIR/issue-3044.rs:3:28: 4:6]`
12 error[E0061]: this function takes 2 arguments but 1 argument was supplied
13 --> $DIR/issue-3044.rs:3:23
15 LL | needlesArr.iter().fold(|x, y| {
16 | _______________________^^^^-
18 | |______- an argument is missing
20 note: associated function defined here
21 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
23 LL | fn fold<B, F>(mut self, init: B, mut f: F) -> B
25 help: provide the argument
27 LL ~ needlesArr.iter().fold(|x, y| {
31 error: aborting due to 2 previous errors
33 Some errors have detailed explanations: E0061, E0308.
34 For more information about an error, try `rustc --explain E0061`.