]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice.rs
Rollup merge of #93400 - ChayimFriedman2:dont-suggest-using-const-with-bounds-unused...
[rust.git] / src / test / ui / tuple / wrong_argument_ice.rs
1 use std::collections::VecDeque;
2
3 pub struct BuildPlanBuilder {
4     acc: VecDeque<(String, String)>,
5     current_provides: String,
6     current_requires: String,
7 }
8
9 impl BuildPlanBuilder {
10     pub fn or(&mut self) -> &mut Self {
11         self.acc.push_back(self.current_provides, self.current_requires);
12         //~^ ERROR this function takes 1 argument but 2 arguments were supplied
13         self
14     }
15 }
16
17 fn main() {}