]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/issue-34264.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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 function takes
8     bar("", ""); //~ ERROR mismatched types
9     bar(1, 2);
10     bar(1, 2, 3); //~ ERROR function takes
11 }