-This error indicates that a variable usage inside an inner function is invalid
-because the variable comes from a dynamic environment. Inner functions do not
-have access to their containing environment.
+A variable used inside an inner function comes from a dynamic environment.
Erroneous code example:
}
```
-Functions do not capture local variables. To fix this error, you can replace the
-function with a closure:
+Inner functions do not have access to their containing environment. To fix this
+error, you can replace the function with a closure:
```
fn foo() {
}
```
-or replace the captured variable with a constant or a static item:
+Or replace the captured variable with a constant or a static item:
```
fn foo() {