2018-08-08 07:28:26 -05:00
|
|
|
error[E0505]: cannot move out of `v` because it is borrowed
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/borrowck-loan-blocks-move.rs:11:10
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2018-08-14 18:16:05 -05:00
|
|
|
LL | let w = &v;
|
|
|
|
| - borrow of `v` occurs here
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | take(v); //~ ERROR cannot move out of `v` because it is borrowed
|
|
|
|
| ^ move out of `v` occurs here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0505`.
|