parser: more friendly hints for handling async move
in the 2015 edition
This commit is contained in:
parent
d9feb02e8d
commit
8e32dade71
5 changed files with 32 additions and 4 deletions
|
@ -23,6 +23,8 @@ parse_async_block_in_2015 = `async` blocks are only allowed in Rust 2018 or late
|
|||
parse_async_fn_in_2015 = `async fn` is not permitted in Rust 2015
|
||||
.label = to use `async fn`, switch to Rust 2018 or later
|
||||
|
||||
parse_async_move_block_in_2015 = `async move` blocks are only allowed in Rust 2018 or later
|
||||
|
||||
parse_async_move_order_incorrect = the order of `move` and `async` is incorrect
|
||||
.suggestion = try switching the order
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue