struct Process; pub type Group = (Vec, Vec); fn test(process: &Process, groups: Vec) -> Vec { 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() {}