about summary refs log tree commit diff
path: root/compiler/rustc_parse/messages.ftl
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2025-02-21 17:24:46 -0300
committerSantiago Pastorino <spastorino@gmail.com>2025-03-06 17:58:34 -0300
commit4e6407ab947314480f3b978a20f9b0685ad59f78 (patch)
tree92988cc1cc2cd86f3d7c038024f47870b13b9f7b /compiler/rustc_parse/messages.ftl
parent2f48fcec63245de13d3017c392ee792ea7f44007 (diff)
downloadrust-4e6407ab947314480f3b978a20f9b0685ad59f78.tar.gz
rust-4e6407ab947314480f3b978a20f9b0685ad59f78.zip
Give a better error message on async use in edition 2015
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 a1d7d321d8a..6d4308cda1a 100644
--- a/compiler/rustc_parse/messages.ftl
+++ b/compiler/rustc_parse/messages.ftl
@@ -26,6 +26,8 @@ parse_async_move_block_in_2015 = `async move` blocks are only allowed in Rust 20
 parse_async_move_order_incorrect = the order of `move` and `async` is incorrect
     .suggestion = try switching the order
 
+parse_async_use_block_in_2015 = `async use` blocks are only allowed in Rust 2018 or later
+
 parse_async_use_order_incorrect = the order of `use` and `async` is incorrect
     .suggestion = try switching the order