2017-11-20 13:13:27 +01:00
|
|
|
fn foo(Option<i32>, String) {} //~ ERROR expected one of
|
|
|
|
//~^ ERROR expected one of
|
|
|
|
fn bar(x, y: usize) {} //~ ERROR expected one of
|
2017-03-28 18:56:29 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(Some(42), 2);
|
2023-01-05 03:02:10 +00:00
|
|
|
foo(Some(42), 2, ""); //~ ERROR function takes
|
2017-11-20 13:13:27 +01:00
|
|
|
bar("", ""); //~ ERROR mismatched types
|
2017-03-28 18:56:29 -07:00
|
|
|
bar(1, 2);
|
2023-01-05 03:02:10 +00:00
|
|
|
bar(1, 2, 3); //~ ERROR function takes
|
2017-03-28 18:56:29 -07:00
|
|
|
}
|