error[E0061]: this function takes 2 parameters but 1 parameter was supplied --> $DIR/issue-3044.rs:14:23 | LL | needlesArr.iter().fold(|x, y| { | ^^^^ expected 2 parameters error: aborting due to previous error If you want more information on this error, try using "rustc --explain E0061"