summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tuple/wrong_argument_ice-2.rs
blob: b0f814616f2ecc492f9114042f59380140eb2d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn test(t: (i32, i32)) {}

struct Foo;

impl Foo {
    fn qux(&self) -> i32 {
        0
    }
}

fn bar() {
    let x = Foo;
    test(x.qux(), x.qux());
    //~^ ERROR this function takes 1 argument but 2 arguments were supplied
}

fn main() {}