blob: b7e0225feb76dad8ee8ba0a3d52f2b85f867d5a3 (
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 method takes 1 argument but 2 arguments were supplied
self
}
}
fn main() {}
|