parser: more friendly hints for handling async move in the 2015 edition

This commit is contained in:
bohan 2023-07-30 15:49:33 +08:00
parent d9feb02e8d
commit 8e32dade71
5 changed files with 32 additions and 4 deletions

View file

@ -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