]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-unary-move.mir.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / borrowck-unary-move.mir.stderr
1 error[E0505]: cannot move out of `x` because it is borrowed
2   --> $DIR/borrowck-unary-move.rs:17:10
3    |
4 LL |     let y = &*x;
5    |             --- borrow of `*x` occurs here
6 LL |     free(x); //[ast]~ ERROR cannot move out of `x` because it is borrowed
7    |          ^ move out of `x` occurs here
8 LL |     //[mir]~^ ERROR cannot move out of `x` because it is borrowed
9 LL |     *y
10    |     -- borrow later used here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0505`.