rust/src/test/ui/issues/issue-3044.rs
2018-12-25 21:08:33 -07:00

7 lines
184 B
Rust

fn main() {
let needlesArr: Vec<char> = vec!['a', 'f'];
needlesArr.iter().fold(|x, y| {
});
//~^^ ERROR this function takes 2 parameters but 1 parameter was supplied
}