Skip to content

Commit c29d41c

Browse files
committed
Note that no other language feature has this issue
1 parent 85c7849 commit c29d41c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Starting in the Rust 2024 edition:
3838
Rust 2015, 2018, and 2021 continue to permit this, but will produce a
3939
warn-by-default lint.
4040

41+
No other language features provide a means of defining a name inside a function
42+
and referencing that name outside the function.
43+
4144
# Drawbacks
4245
[drawbacks]: #drawbacks
4346

0 commit comments

Comments
 (0)