]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/issue-34264.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / issue-34264.rs
1 fn foo(Option<i32>, String) {} //~ ERROR expected one of
2 //~^ ERROR expected one of
3 fn bar(x, y: usize) {} //~ ERROR expected one of
4
5 fn main() {
6     foo(Some(42), 2);
7     foo(Some(42), 2, ""); //~ ERROR this function takes
8     bar("", ""); //~ ERROR mismatched types
9     bar(1, 2);
10     bar(1, 2, 3); //~ ERROR this function takes
11 }