2023-06-23 22:00:08 -05:00
|
|
|
error: expected identifier, found keyword `self`
|
2023-09-13 11:04:42 -05:00
|
|
|
--> $DIR/bad-signatures.rs:5:23
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn bar(&abc self);
|
|
|
|
| ^^^^ expected identifier, found keyword
|
|
|
|
|
|
|
|
error: expected one of `:`, `@`, or `|`, found keyword `self`
|
2023-09-13 11:04:42 -05:00
|
|
|
--> $DIR/bad-signatures.rs:5:23
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn bar(&abc self);
|
|
|
|
| -----^^^^
|
|
|
|
| | |
|
|
|
|
| | expected one of `:`, `@`, or `|`
|
|
|
|
| help: declare the type after the parameter binding: `<identifier>: <type>`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|