summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tuple/wrong_argument_ice.rs
blob: da967d8c1467610c87b497a2367eb7beca3bf478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::collections::VecDeque;

pub struct BuildPlanBuilder {
    acc: VecDeque<(String, String)>,
    current_provides: String,
    current_requires: String,
}

impl BuildPlanBuilder {
    pub fn or(&mut self) -> &mut Self {
        self.acc.push_back(self.current_provides, self.current_requires);
        //~^ ERROR this function takes 1 argument but 2 arguments were supplied
        self
    }
}

fn main() {}