fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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 `self` type, give it a parameter name 9 | 10LL | fn foo(self: Option<i32>, String) {} 11 | +++++ 12help: if this is a type, explicitly ignore the parameter name 13 | 14LL | fn foo(_: Option<i32>, String) {} 15 | ++ 16 17error: expected one of `:`, `@`, or `|`, found `)` 18 --> $DIR/issue-34264.rs:1:27 19 | 20LL | fn foo(Option<i32>, String) {} 21 | ^ expected one of `:`, `@`, or `|` 22 | 23 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 24help: if this is a parameter name, give it a type 25 | 26LL | fn foo(Option<i32>, String: TypeName) {} 27 | ++++++++++ 28help: if this is a type, explicitly ignore the parameter name 29 | 30LL | fn foo(Option<i32>, _: String) {} 31 | ++ 32 33error: expected one of `:`, `@`, or `|`, found `,` 34 --> $DIR/issue-34264.rs:3:9 35 | 36LL | fn bar(x, y: usize) {} 37 | ^ expected one of `:`, `@`, or `|` 38 | 39 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 40help: if this is a `self` type, give it a parameter name 41 | 42LL | fn bar(self: x, y: usize) {} 43 | +++++ 44help: if this is a parameter name, give it a type 45 | 46LL | fn bar(x: TypeName, y: usize) {} 47 | ++++++++++ 48help: if this is a type, explicitly ignore the parameter name 49 | 50LL | fn bar(_: x, y: usize) {} 51 | ++ 52 53error[E0061]: this function takes 2 arguments but 3 arguments were supplied 54 --> $DIR/issue-34264.rs:7:5 55 | 56LL | foo(Some(42), 2, ""); 57 | ^^^ ---- 58 | | | 59 | | unexpected argument of type `&'static str` 60 | help: remove the extra argument 61 | 62note: function defined here 63 --> $DIR/issue-34264.rs:1:4 64 | 65LL | fn foo(Option<i32>, String) {} 66 | ^^^ ----------- ------ 67 68error[E0308]: mismatched types 69 --> $DIR/issue-34264.rs:8:13 70 | 71LL | bar("", ""); 72 | --- ^^ expected `usize`, found `&str` 73 | | 74 | arguments to this function are incorrect 75 | 76note: function defined here 77 --> $DIR/issue-34264.rs:3:4 78 | 79LL | fn bar(x, y: usize) {} 80 | ^^^ -------- 81 82error[E0061]: this function takes 2 arguments but 3 arguments were supplied 83 --> $DIR/issue-34264.rs:10:5 84 | 85LL | bar(1, 2, 3); 86 | ^^^ --- 87 | | | 88 | | unexpected argument of type `{integer}` 89 | help: remove the extra argument 90 | 91note: function defined here 92 --> $DIR/issue-34264.rs:3:4 93 | 94LL | fn bar(x, y: usize) {} 95 | ^^^ - -------- 96 97error: aborting due to 6 previous errors 98 99Some errors have detailed explanations: E0061, E0308. 100For more information about an error, try `rustc --explain E0061`.