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 `self` type, give it a parameter name
10 LL | fn foo(self: Option<i32>, String) {}
12 help: if this is a type, explicitly ignore the parameter name
14 LL | fn foo(_: Option<i32>, String) {}
17 error: expected one of `:`, `@`, or `|`, found `)`
18 --> $DIR/issue-34264.rs:1:27
20 LL | fn foo(Option<i32>, String) {}
21 | ^ expected one of `:`, `@`, or `|`
23 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
24 help: if this is a parameter name, give it a type
26 LL | fn foo(Option<i32>, String: TypeName) {}
28 help: if this is a type, explicitly ignore the parameter name
30 LL | fn foo(Option<i32>, _: String) {}
33 error: expected one of `:`, `@`, or `|`, found `,`
34 --> $DIR/issue-34264.rs:3:9
36 LL | fn bar(x, y: usize) {}
37 | ^ expected one of `:`, `@`, or `|`
39 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
40 help: if this is a `self` type, give it a parameter name
42 LL | fn bar(self: x, y: usize) {}
44 help: if this is a parameter name, give it a type
46 LL | fn bar(x: TypeName, y: usize) {}
48 help: if this is a type, explicitly ignore the parameter name
50 LL | fn bar(_: x, y: usize) {}
53 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
54 --> $DIR/issue-34264.rs:7:5
56 LL | foo(Some(42), 2, "");
57 | ^^^ -------- - -- supplied 3 arguments
59 | expected 2 arguments
61 note: function defined here
62 --> $DIR/issue-34264.rs:1:4
64 LL | fn foo(Option<i32>, String) {}
65 | ^^^ ----------- ------
67 error[E0308]: mismatched types
68 --> $DIR/issue-34264.rs:8:13
71 | ^^ expected `usize`, found `&str`
73 error[E0061]: this function takes 2 arguments but 3 arguments were supplied
74 --> $DIR/issue-34264.rs:10:5
77 | ^^^ - - - supplied 3 arguments
79 | expected 2 arguments
81 note: function defined here
82 --> $DIR/issue-34264.rs:3:4
84 LL | fn bar(x, y: usize) {}
87 error: aborting due to 6 previous errors
89 Some errors have detailed explanations: E0061, E0308.
90 For more information about an error, try `rustc --explain E0061`.