Skip to content

Commit 4d28f57

Browse files
committed
3373: Allow definitions in anonymous const items
1 parent 01045be commit 4d28f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

text/3373-avoid-nonlocal-definitions-in-fns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The following types of items, "expression-containing items", can contain
3434
expressions, including the definitions of other items:
3535
- Functions
3636
- Closures
37-
- The values assigned to `static`/`const` items
37+
- The values assigned to `static` items or non-anonymous `const` items.
3838
- The discriminant values assigned to `enum` variants
3939

4040
Rust will emit a warn-by-default lint for all of the following cases:

0 commit comments

Comments
 (0)