Skip to content

Commit 4016b06

Browse files
committed
Doc which attributes are allowed on statements
1 parent 854ac93 commit 4016b06

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/statements.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,19 @@ if true {
9090
};
9191
```
9292

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

0 commit comments

Comments
 (0)