fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0505]: cannot move out of `*a` because it is borrowed 2 --> $DIR/borrowck-move-from-subpath-of-borrowed-path.rs:12:13 3 | 4LL | let a: Box<Box<_>> = Box::new(Box::new(2)); 5 | - binding `a` declared here 6LL | let b = &a; 7 | -- borrow of `a` occurs here 8LL | 9LL | let z = *a; 10 | ^^ move out of `*a` occurs here 11LL | b.use_ref(); 12 | - borrow later used here 13 14error: aborting due to previous error 15 16For more information about this error, try `rustc --explain E0505`.