rust/tests/ui/tuple/wrong_argument_ice-3.rs
2023-01-11 09:32:08 +00:00

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() {}