mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
18 lines
409 B
Rust
18 lines
409 B
Rust
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() {}
|