]> git.proxmox.com Git - rustc.git/blob - src/test/ui/tuple/wrong_argument_ice-2.rs
New upstream version 1.60.0+dfsg1
[rustc.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 this function takes 1 argument but 2 arguments were supplied
15 }
16
17 fn main() {}