diff options
| author | Eric Holk <ericholk@microsoft.com> | 2023-11-29 16:59:06 -0800 |
|---|---|---|
| committer | Eric Holk <ericholk@microsoft.com> | 2023-12-04 11:23:07 -0800 |
| commit | f29b36d03ecf9986ac6c47385ff9390c9a2390e6 (patch) | |
| tree | 14399bdb64fe1e28548bf66b8013df46a6bb191c /compiler/rustc_parse/messages.ftl | |
| parent | 7c43784cb07a2e9006acc6f230df27dd28d88dab (diff) | |
| download | rust-f29b36d03ecf9986ac6c47385ff9390c9a2390e6.tar.gz rust-f29b36d03ecf9986ac6c47385ff9390c9a2390e6.zip | |
Make async gen fn an error
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 1c3c433d8b7..da51d9dbe9f 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -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_gen_fn = `async gen` functions are not supported + 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 |
