2022-03-03 22:39:50 -06:00
|
|
|
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]);
|
2023-01-04 21:02:10 -06:00
|
|
|
//~^ ERROR this method takes 1 argument but 2 arguments were supplied
|
2022-03-03 22:39:50 -06:00
|
|
|
return groups;
|
|
|
|
}
|
|
|
|
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|