2017-11-20 06:13:27 -06: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 20:56:29 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(Some(42), 2);
|
2023-01-04 21:02:10 -06:00
|
|
|
foo(Some(42), 2, ""); //~ ERROR function takes
|
2017-11-20 06:13:27 -06:00
|
|
|
bar("", ""); //~ ERROR mismatched types
|
2017-03-28 20:56:29 -05:00
|
|
|
bar(1, 2);
|
2023-01-04 21:02:10 -06:00
|
|
|
bar(1, 2, 3); //~ ERROR function takes
|
2017-03-28 20:56:29 -05:00
|
|
|
}
|