blob: 01b13b29fb4ccb3f6cc3b3549b6e5cec2b619e11 (
plain)
1
2
3
4
5
6
7
8
9
10
|
fn foo(s: &str, a: (i32, i32), s2: &str) {}
fn bar(s: &str, a: (&str,), s2: &str) {}
fn main() {
foo("hi", 1, 2, "hi");
//~^ ERROR function takes 3 arguments but 4 arguments were supplied
bar("hi", "hi", "hi");
//~^ ERROR mismatched types
}
|