|
| 1 | +error: expected one of `:`, `@`, or `|`, found `)` |
| 2 | + --> $DIR/suggest-self-in-bare-function.rs:7:17 |
| 3 | + | |
| 4 | +LL | fn is_even(value) -> bool { |
| 5 | + | ^ expected one of `:`, `@`, or `|` |
| 6 | + | |
| 7 | + = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) |
| 8 | +help: if this is a `self` type, give it a parameter name |
| 9 | + | |
| 10 | +LL | fn is_even(self: value) -> bool { |
| 11 | + | +++++ |
| 12 | +help: if this is a parameter name, give it a type |
| 13 | + | |
| 14 | +LL | fn is_even(value: TypeName) -> bool { |
| 15 | + | ++++++++++ |
| 16 | +help: if this is a type, explicitly ignore the parameter name |
| 17 | + | |
| 18 | +LL | fn is_even(_: value) -> bool { |
| 19 | + | ++ |
| 20 | + |
| 21 | +error: expected one of `:`, `@`, or `|`, found `)` |
| 22 | + --> $DIR/suggest-self-in-bare-function.rs:14:21 |
| 23 | + | |
| 24 | +LL | fn is_even(value) -> bool { |
| 25 | + | ^ expected one of `:`, `@`, or `|` |
| 26 | + | |
| 27 | + = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) |
| 28 | +help: if this is a `self` type, give it a parameter name |
| 29 | + | |
| 30 | +LL | fn is_even(self: value) -> bool { |
| 31 | + | +++++ |
| 32 | +help: if this is a parameter name, give it a type |
| 33 | + | |
| 34 | +LL | fn is_even(value: TypeName) -> bool { |
| 35 | + | ++++++++++ |
| 36 | +help: if this is a type, explicitly ignore the parameter name |
| 37 | + | |
| 38 | +LL | fn is_even(_: value) -> bool { |
| 39 | + | ++ |
| 40 | + |
| 41 | +error: expected one of `:`, `@`, or `|`, found `)` |
| 42 | + --> $DIR/suggest-self-in-bare-function.rs:20:21 |
| 43 | + | |
| 44 | +LL | fn is_even(value) -> bool { |
| 45 | + | ^ expected one of `:`, `@`, or `|` |
| 46 | + | |
| 47 | + = note: anonymous parameters are removed in the 2018 edition (see RFC 1685) |
| 48 | +help: if this is a `self` type, give it a parameter name |
| 49 | + | |
| 50 | +LL | fn is_even(self: value) -> bool { |
| 51 | + | +++++ |
| 52 | +help: if this is a parameter name, give it a type |
| 53 | + | |
| 54 | +LL | fn is_even(value: TypeName) -> bool { |
| 55 | + | ++++++++++ |
| 56 | +help: if this is a type, explicitly ignore the parameter name |
| 57 | + | |
| 58 | +LL | fn is_even(_: value) -> bool { |
| 59 | + | ++ |
| 60 | + |
| 61 | +error: aborting due to 3 previous errors |
| 62 | + |
0 commit comments