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