]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tuple/wrong_argument_ice-2.rs
Rollup merge of #106499 - lyming2007:issue-105946-fix, r=estebank
[rust.git] / src / test / ui / tuple / wrong_argument_ice-2.rs
1 fn test(t: (i32, i32)) {}
2
3 struct Foo;
4
5 impl Foo {
6     fn qux(&self) -> i32 {
7         0
8     }
9 }
10
11 fn bar() {
12     let x = Foo;
13     test(x.qux(), x.qux());
14     //~^ ERROR function takes 1 argument but 2 arguments were supplied
15 }
16
17 fn main() {}