summaryrefslogtreecommitdiffstats
path: root/tests/ui/tuple/wrong_argument_ice-3.rs
blob: 96633180b57eb320480999f955a22cf5b061d4a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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() {}