blob: f82e3bc5de3f63ebe069e763d0fc45dae61b0c98 [file]
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