File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ The following keywords are reserved beginning in the 2024 edition.
100
100
These keywords have special meaning only in certain contexts. For example, it
101
101
is possible to declare a variable or method with the name ` union ` .
102
102
103
+ > ** <sup >Lexer</sup >** \
104
+ > KW_MACRO_RULES : ` macro_rules ` \
105
+ > KW_UNION : ` union ` \
106
+ > KW_STATICLIFETIME : ` 'static `
107
+ >
108
+ > ** <sup >Lexer 2015</sup >** \
109
+ > KW_DYN : ` dyn `
110
+
103
111
* ` macro_rules ` is used to create custom [ macros] .
104
112
* ` union ` is used to declare a [ union] and is only a keyword when used in a
105
113
union declaration.
@@ -116,13 +124,6 @@ is possible to declare a variable or method with the name `union`.
116
124
117
125
Beginning in the 2018 edition, ` dyn ` has been promoted to a strict keyword.
118
126
119
- > ** <sup >Lexer</sup >** \
120
- > KW_MACRO_RULES : ` macro_rules ` \
121
- > KW_UNION : ` union ` \
122
- > KW_STATICLIFETIME : ` 'static `
123
- >
124
- > ** <sup >Lexer 2015</sup >** \
125
- > KW_DYN : ` dyn `
126
127
* ` safe ` is used for functions and statics, which has meaning in [ external blocks] .
127
128
128
129
[ items ] : items.md
You can’t perform that action at this time.
0 commit comments