Skip to content

Commit 5c86c73

Browse files
authored
Merge pull request #1501 from traviscross/TC/reserve-gen
Document `gen` keyword as reserved in Rust 2024
2 parents e501c01 + f5fac38 commit 5c86c73

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/keywords.md

+5
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ The following keywords are reserved beginning in the 2018 edition.
9090
> **<sup>Lexer 2018+</sup>**\
9191
> KW_TRY : `try`
9292
93+
The following keywords are reserved beginning in the 2024 edition.
94+
95+
> **<sup>Lexer 2024+</sup>**\
96+
> KW_GEN : `gen`
97+
9398
## Weak keywords
9499

95100
These keywords have special meaning only in certain contexts. For example, it

0 commit comments

Comments
 (0)