1 error: expected one of `:` or `@`, found `<`
2 --> $DIR/issue-34264.rs:11:14
4 11 | fn foo(Option<i32>, String) {}
5 | ^ expected one of `:` or `@` here
7 error: expected one of `:` or `@`, found `)`
8 --> $DIR/issue-34264.rs:11:27
10 11 | fn foo(Option<i32>, String) {}
11 | ^ expected one of `:` or `@` here
13 error: expected one of `:` or `@`, found `,`
14 --> $DIR/issue-34264.rs:12:9
16 12 | fn bar(x, y: usize) {}
17 | ^ expected one of `:` or `@` here
19 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
20 --> $DIR/issue-34264.rs:16:9
22 11 | fn foo(Option<i32>, String) {}
23 | ------------------------------ defined here
25 16 | foo(Some(42), 2, "");
26 | ^^^^^^^^^^^^^^^ expected 2 parameters
28 error[E0308]: mismatched types
29 --> $DIR/issue-34264.rs:17:13
32 | ^^ expected usize, found reference
34 = note: expected type `usize`
35 found type `&'static str`
36 = help: here are some functions which might fulfill your needs:
39 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
40 --> $DIR/issue-34264.rs:19:9
42 12 | fn bar(x, y: usize) {}
43 | ---------------------- defined here
46 | ^^^^^^^ expected 2 parameters
48 error: aborting due to 6 previous errors