fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error: expected one of `:`, `@`, or `|`, found `<` 2 --> $DIR/issue-34264.rs:1:14 3 | 4LL | fn foo(Option<i32>, String) {} 5 | ^ expected one of `:`, `@`, or `|` 6 | 7 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 8help: if this is a type, explicitly ignore the parameter name 9 | 10LL | fn foo(_: Option<i32>, String) {} 11 | ^^^^^^^^^ 12 13error: expected one of `:`, `@`, or `|`, found `)` 14 --> $DIR/issue-34264.rs:1:27 15 | 16LL | fn foo(Option<i32>, String) {} 17 | ^ expected one of `:`, `@`, or `|` 18 | 19 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 20help: if this was a parameter name, give it a type 21 | 22LL | fn foo(Option<i32>, String: TypeName) {} 23 | ^^^^^^^^^^^^^^^^ 24help: if this is a type, explicitly ignore the parameter name 25 | 26LL | fn foo(Option<i32>, _: String) {} 27 | ^^^^^^^^^ 28 29error: expected one of `:`, `@`, or `|`, found `,` 30 --> $DIR/issue-34264.rs:3:9 31 | 32LL | fn bar(x, y: usize) {} 33 | ^ expected one of `:`, `@`, or `|` 34 | 35 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 36help: if this was a parameter name, give it a type 37 | 38LL | fn bar(x: TypeName, y: usize) {} 39 | ^^^^^^^^^^^ 40help: if this is a type, explicitly ignore the parameter name 41 | 42LL | fn bar(_: x, y: usize) {} 43 | ^^^^ 44 45error[E0061]: this function takes 2 parameters but 3 parameters were supplied 46 --> $DIR/issue-34264.rs:7:5 47 | 48LL | fn foo(Option<i32>, String) {} 49 | --------------------------- defined here 50... 51LL | foo(Some(42), 2, ""); 52 | ^^^^^^^^^^^^^^^^^^^^ expected 2 parameters 53 54error[E0308]: mismatched types 55 --> $DIR/issue-34264.rs:8:13 56 | 57LL | bar("", ""); 58 | ^^ expected `usize`, found `&str` 59 60error[E0061]: this function takes 2 parameters but 3 parameters were supplied 61 --> $DIR/issue-34264.rs:10:5 62 | 63LL | fn bar(x, y: usize) {} 64 | ------------------- defined here 65... 66LL | bar(1, 2, 3); 67 | ^^^^^^^^^^^^ expected 2 parameters 68 69error: aborting due to 6 previous errors 70 71Some errors have detailed explanations: E0061, E0308. 72For more information about an error, try `rustc --explain E0061`.