blob: ac0e4ff13c7e472a7c586704d5fcf1c5a3b2d9ee [file] [log] [blame]
error[E0503]: cannot use `x` because it was mutably borrowed
--> $DIR/unboxed-closures-borrow-conflict.rs:9:9
|
LL | let f = || x += 1;
| -- borrow of `x` occurs here
LL | let _y = x;
| ^^ use of borrowed `x`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0503`.