]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/borrowck-move-mut-base-ptr.stderr
Rollup merge of #57132 - daxpedda:master, r=steveklabnik
[rust.git] / src / test / ui / borrowck / borrowck-move-mut-base-ptr.stderr
1 error[E0505]: cannot move out of `t0` because it is borrowed
2   --> $DIR/borrowck-move-mut-base-ptr.rs:10:9
3    |
4 LL |     let p: &isize = &*t0; // Freezes `*t0`
5    |                      --- borrow of `*t0` occurs here
6 LL |     let t1 = t0;        //~ ERROR cannot move out of `t0`
7    |         ^^ move out of `t0` occurs here
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0505`.