]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-loan-blocks-move.nll.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / borrowck / borrowck-loan-blocks-move.nll.stderr
1 error[E0505]: cannot move out of `v` because it is borrowed
2   --> $DIR/borrowck-loan-blocks-move.rs:11:10
3    |
4 LL |     let w = &v;
5    |             -- borrow of `v` occurs here
6 LL |     take(v); //~ ERROR cannot move out of `v` because it is borrowed
7    |          ^ move out of `v` occurs here
8 LL |     w.use_ref();
9    |     - borrow later used here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0505`.