fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error: expected one of `:`, `@`, or `|`, found `)` 2 --> $DIR/anon-params-denied-2018.rs:6:15 3 | 4LL | fn foo(i32); 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: i32); 11 | ^^^^^^^^^ 12help: if this was a parameter name, give it a type 13 | 14LL | fn foo(i32: TypeName); 15 | ^^^^^^^^^^^^^ 16help: if this is a type, explicitly ignore the parameter name 17 | 18LL | fn foo(_: i32); 19 | ^^^^^^ 20 21error: expected one of `:`, `@`, or `|`, found `,` 22 --> $DIR/anon-params-denied-2018.rs:8:36 23 | 24LL | fn bar_with_default_impl(String, String) {} 25 | ^ expected one of `:`, `@`, or `|` 26 | 27 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 28help: if this is a `self` type, give it a parameter name 29 | 30LL | fn bar_with_default_impl(self: String, String) {} 31 | ^^^^^^^^^^^^ 32help: if this was a parameter name, give it a type 33 | 34LL | fn bar_with_default_impl(String: TypeName, String) {} 35 | ^^^^^^^^^^^^^^^^ 36help: if this is a type, explicitly ignore the parameter name 37 | 38LL | fn bar_with_default_impl(_: String, String) {} 39 | ^^^^^^^^^ 40 41error: expected one of `:`, `@`, or `|`, found `)` 42 --> $DIR/anon-params-denied-2018.rs:8:44 43 | 44LL | fn bar_with_default_impl(String, String) {} 45 | ^ expected one of `:`, `@`, or `|` 46 | 47 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 48help: if this was a parameter name, give it a type 49 | 50LL | fn bar_with_default_impl(String, String: TypeName) {} 51 | ^^^^^^^^^^^^^^^^ 52help: if this is a type, explicitly ignore the parameter name 53 | 54LL | fn bar_with_default_impl(String, _: String) {} 55 | ^^^^^^^^^ 56 57error: expected one of `:`, `@`, or `|`, found `,` 58 --> $DIR/anon-params-denied-2018.rs:13:22 59 | 60LL | fn baz(a:usize, b, c: usize) -> usize { 61 | ^ expected one of `:`, `@`, or `|` 62 | 63 = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) 64help: if this was a parameter name, give it a type 65 | 66LL | fn baz(a:usize, b: TypeName, c: usize) -> usize { 67 | ^^^^^^^^^^^ 68help: if this is a type, explicitly ignore the parameter name 69 | 70LL | fn baz(a:usize, _: b, c: usize) -> usize { 71 | ^^^^ 72 73error: aborting due to 4 previous errors 74