rust/tests/ui/tuple/wrong_argument_ice-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
240 B
Rust
Raw Normal View History

2022-02-26 04:20:26 +00:00
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 function takes 1 argument but 2 arguments were supplied
2022-02-26 04:20:26 +00:00
}
fn main() {}