• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct Process;
2 
3 pub type Group = (Vec<String>, Vec<Process>);
4 
test(process: &Process, groups: Vec<Group>) -> Vec<Group>5 fn test(process: &Process, groups: Vec<Group>) -> Vec<Group> {
6     let new_group = vec![String::new()];
7 
8     if groups.capacity() == 0 {
9         groups.push(new_group, vec![process]);
10         //~^ ERROR this method takes 1 argument but 2 arguments were supplied
11         return groups;
12     }
13 
14     todo!()
15 }
16 
main()17 fn main() {}
18