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