summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-3044.rs
blob: 7c626a01b1298dfdb64655d763eb2d31ba2721a4 (plain)
1
2
3
4
5
6
fn main() {
    let needlesArr: Vec<char> = vec!['a', 'f'];
    needlesArr.iter().fold(|x, y| {
        //~^ ERROR this function takes 2 arguments but 1 argument was supplied
    });
}