fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0499]: cannot borrow `void` as mutable more than once at a time 2 --> $DIR/mut-borrow-outside-loop.rs:7:18 3 | 4LL | let first = &mut void; 5 | --------- first mutable borrow occurs here 6LL | let second = &mut void; 7 | ^^^^^^^^^ second mutable borrow occurs here 8LL | first.use_mut(); 9 | ----- first borrow later used here 10 11error[E0499]: cannot borrow `inner_void` as mutable more than once at a time 12 --> $DIR/mut-borrow-outside-loop.rs:15:28 13 | 14LL | let inner_first = &mut inner_void; 15 | --------------- first mutable borrow occurs here 16LL | let inner_second = &mut inner_void; 17 | ^^^^^^^^^^^^^^^ second mutable borrow occurs here 18LL | inner_second.use_mut(); 19LL | inner_first.use_mut(); 20 | ----------- first borrow later used here 21 22error: aborting due to 2 previous errors 23 24For more information about this error, try `rustc --explain E0499`.