| error: cannot use `x` in this move expression | |
| --> $DIR/name-resolution.rs:8:14 | |
| | | |
| LL | let _c = || { | |
| | -- `x` is defined within this scope | |
| LL | let x = 3; | |
| | - `x` is defined here | |
| LL | move(x); | |
| | -----^- this expression is evaluated outside that scope | |
| error: aborting due to 1 previous error | |