2022-06-28 00:12:49 -07:00
|
|
|
fn foo(s: &str, a: (i32, i32), s2: &str) {}
|
|
|
|
|
|
|
|
fn bar(s: &str, a: (&str,), s2: &str) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo("hi", 1, 2, "hi");
|
2023-01-05 03:02:10 +00:00
|
|
|
//~^ ERROR function takes 3 arguments but 4 arguments were supplied
|
2022-06-28 00:12:49 -07:00
|
|
|
bar("hi", "hi", "hi");
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
}
|