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