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 `|`
7 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
8 help: if this is a type, explicitly ignore the parameter name
10 LL | fn foo(_: Option<i32>, String) {}
13 error: expected one of `:`, `@`, or `|`, found `)`
14 --> $DIR/issue-34264.rs:1:27
16 LL | fn foo(Option<i32>, String) {}
17 | ^ expected one of `:`, `@`, or `|`
19 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
20 help: if this was a parameter name, give it a type
22 LL | fn foo(Option<i32>, String: TypeName) {}
24 help: if this is a type, explicitly ignore the parameter name
26 LL | fn foo(Option<i32>, _: String) {}
29 error: expected one of `:`, `@`, or `|`, found `,`
30 --> $DIR/issue-34264.rs:3:9
32 LL | fn bar(x, y: usize) {}
33 | ^ expected one of `:`, `@`, or `|`
35 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
36 help: if this was a parameter name, give it a type
38 LL | fn bar(x: TypeName, y: usize) {}
40 help: if this is a type, explicitly ignore the parameter name
42 LL | fn bar(_: x, y: usize) {}
45 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
46 --> $DIR/issue-34264.rs:7:5
48 LL | fn foo(Option<i32>, String) {}
49 | --------------------------- defined here
51 LL | foo(Some(42), 2, "");
52 | ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters
54 error[E0308]: mismatched types
55 --> $DIR/issue-34264.rs:8:13
58 | ^^ expected `usize`, found `&str`
60 error[E0061]: this function takes 2 parameters but 3 parameters were supplied
61 --> $DIR/issue-34264.rs:10:5
63 LL | fn bar(x, y: usize) {}
64 | ------------------- defined here
67 | ^^^^^^^^^^^^ expected 2 parameters
69 error: aborting due to 6 previous errors
71 Some errors have detailed explanations: E0061, E0308.
72 For more information about an error, try `rustc --explain E0061`.