summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tuple/wrong_argument_ice-3.rs
blob: 951687c37596ac77578f1aa5c24eb21a91b51d3c (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 function takes 1 argument but 2 arguments were supplied
        return groups;
    }

    todo!()
}

fn main() {}