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 | _______________________^^^^_-
7 | | expected 2 arguments
9 | |_____- supplied 1 argument
11 note: associated function defined here
12 --> $SRC_DIR/core/src/iter/traits/iterator.rs:LL:COL
14 LL | fn fold<B, F>(mut self, init: B, mut f: F) -> B
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0061`.