mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
18 lines
384 B
Rust
18 lines
384 B
Rust
struct Process;
|
|
|
|
pub type Group = (Vec<String>, Vec<Process>);
|
|
|
|
fn test(process: &Process, groups: Vec<Group>) -> Vec<Group> {
|
|
let new_group = vec![String::new()];
|
|
|
|
if groups.capacity() == 0 {
|
|
groups.push(new_group, vec![process]);
|
|
//~^ ERROR this method takes 1 argument but 2 arguments were supplied
|
|
return groups;
|
|
}
|
|
|
|
todo!()
|
|
}
|
|
|
|
fn main() {}
|