File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,11 @@ let message = match maybe_digit {
175
175
};
176
176
```
177
177
178
+ ## Attributes on match arms
179
+
180
+ Outer attributes are allowed on match arms. The only attributes that have
181
+ meaning on match arms are [ ` cfg ` ] , ` cold ` , and the [ lint check attributes] .
182
+
178
183
[ _Expression_ ] : expressions.html
179
184
[ _BlockExpression_ ] : expressions/block-expr.html#block-expressions
180
185
[ place expression ] : expressions.html#place-expressions-and-value-expressions
@@ -183,3 +188,5 @@ let message = match maybe_digit {
183
188
[ numeric types ] : types.html#numeric-types
184
189
[ _InnerAttribute_ ] : attributes.html
185
190
[ _OuterAttribute_ ] : attributes.html
191
+ [ `cfg` ] : attributes.html#conditional-compilation
192
+ [ lint check attributes ] : attributes.html#lint-check-attributes
You can’t perform that action at this time.
0 commit comments