1 error[E0061]: this function takes 2 arguments but 1 argument was supplied
2 --> $DIR/issue-3044.rs:3:23
4 LL | needlesArr.iter().fold(|x, y| {
5 | _______________________^^^^-
8 | |______- an argument is missing
10 note: associated function defined here
11 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
12 help: provide the argument
14 LL ~ needlesArr.iter().fold(|x, y| {
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0061`.