fork/rust
git clone https://git.julia.blue/fork/rust
73528e339aa
1.40.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 | 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 `|` here 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 `|` here 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 reference 59 | 60 = note: expected type `usize` 61 found type `&'static str` 62 63error[E0061]: this function takes 2 parameters but 3 parameters were supplied 64 --> $DIR/issue-34264.rs:10:5 65 | 66LL | fn bar(x, y: usize) {} 67 | ------------------- defined here 68... 69LL | bar(1, 2, 3); 70 | ^^^^^^^^^^^^ expected 2 parameters 71 72error: aborting due to 6 previous errors 73 74Some errors have detailed explanations: E0061, E0308. 75For more information about an error, try `rustc --explain E0061`.