Skip to content

Commit f182317

Browse files
committed
Doc which attributes are allowed on statements
1 parent f382394 commit f182317

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/statements.md

+8
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,18 @@ if true {
8989
};
9090
```
9191

92+
## Attributes on Statements
93+
94+
Statements accept [outer attributes]. The attributes that have meaning on a
95+
statement are [`cfg`], and [the lint check attributes].
96+
9297
[block]: expressions/block-expr.html
9398
[expression]: expressions.html
9499
[function]: items/functions.html
95100
[item]: items.html
96101
[module]: items/modules.html
97102
[canonical path]: paths.html#canonical-paths
98103
[implementations]: items/implementations.html
104+
[outer attributes]: attributes.html
105+
[`cfg`]: attributes.html#conditional-compilation
106+
[the lint check attributes]: attributes.html#lint-check-attributes.html

0 commit comments

Comments
 (0)