2022-06-28 02:12:49 -05: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-04 21:02:10 -06:00
|
|
|
//~^ ERROR function takes 3 arguments but 4 arguments were supplied
|
2022-06-28 02:12:49 -05:00
|
|
|
bar("hi", "hi", "hi");
|
|
|
|
//~^ ERROR mismatched types
|
|
|
|
}
|