about summary refs log tree commit diff
path: root/compiler/rustc_parse/messages.ftl
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2023-11-29 16:59:06 -0800
committerEric Holk <ericholk@microsoft.com>2023-12-04 11:23:07 -0800
commitf29b36d03ecf9986ac6c47385ff9390c9a2390e6 (patch)
tree14399bdb64fe1e28548bf66b8013df46a6bb191c /compiler/rustc_parse/messages.ftl
parent7c43784cb07a2e9006acc6f230df27dd28d88dab (diff)
downloadrust-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.ftl2
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