1 error: expected one of `:` or `@`, found `<`
2 --> $DIR/issue-34264.rs:1:14
4 LL | fn foo(Option<i32>, String) {}
5 | ^ expected one of `:` or `@` here
7 error: expected one of `:` or `@`, found `)`
8 --> $DIR/issue-34264.rs:1:27
10 LL | fn foo(Option<i32>, String) {}
11 | ^ expected one of `:` or `@` here
13 error: expected one of `:` or `@`, found `,`
14 --> $DIR/issue-34264.rs:3:9
16 LL | 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:7:5
22 LL | fn foo(Option<i32>, String) {}
23 | --------------------------- defined here
25 LL | foo(Some(42), 2, "");
26 | ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
28 error[E0308]: mismatched types
29 --> $DIR/issue-34264.rs:8:13
32 | ^^ expected usize, found reference
34 = note: expected type `usize`
35 found type `&'static str`
37 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
38 --> $DIR/issue-34264.rs:10:5
40 LL | fn bar(x, y: usize) {}
41 | ------------------- defined here
44 | ^^^^^^^^^^^^ expected 2 parameters
46 error: aborting due to 6 previous errors
48 Some errors have detailed explanations: E0061, E0308.
49 For more information about an error, try `rustc --explain E0061`.