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-bad-nested-calls-move.rs:25:9 3 | 4LL | let mut a: Box<_> = Box::new(1); 5 | ----- binding `a` declared here 6... 7LL | add( 8 | --- borrow later used by call 9LL | &*a, 10 | --- borrow of `*a` occurs here 11LL | a); 12 | ^ move out of `a` occurs here 13 14error[E0505]: cannot move out of `a` because it is borrowed 15 --> $DIR/borrowck-bad-nested-calls-move.rs:32:9 16 | 17LL | let mut a: Box<_> = Box::new(1); 18 | ----- binding `a` declared here 19LL | add( 20 | --- borrow later used by call 21LL | &*a, 22 | --- borrow of `*a` occurs here 23LL | a); 24 | ^ move out of `a` occurs here 25 26error: aborting due to 2 previous errors 27 28For more information about this error, try `rustc --explain E0505`.