fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0506]: cannot assign to `base` because it is borrowed 2 --> $DIR/drop-in-loop.rs:18:9 3 | 4LL | let mut wrapper = WrapperWithDrop(&mut base); 5 | --------- `base` is borrowed here 6LL | loop { 7LL | base = false; 8 | ^^^^^^^^^^^^ `base` is assigned to here but it was already borrowed 9LL | wrapper = WrapperWithDrop(&mut base); 10 | ------- borrow might be used here, when `wrapper` is dropped and runs the `Drop` code for type `WrapperWithDrop` 11 12error: aborting due to previous error 13 14For more information about this error, try `rustc --explain E0506`.