fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0499]: cannot borrow `data` as mutable more than once at a time 2 --> $DIR/loan_ends_mid_block_vec.rs:11:5 3 | 4LL | let slice = &mut data; 5 | --------- first mutable borrow occurs here 6LL | capitalize(slice); 7LL | data.push('d'); 8 | ^^^^ second mutable borrow occurs here 9... 10LL | capitalize(slice); 11 | ----- first borrow later used here 12 13error[E0499]: cannot borrow `data` as mutable more than once at a time 14 --> $DIR/loan_ends_mid_block_vec.rs:13:5 15 | 16LL | let slice = &mut data; 17 | --------- first mutable borrow occurs here 18... 19LL | data.push('e'); 20 | ^^^^ second mutable borrow occurs here 21... 22LL | capitalize(slice); 23 | ----- first borrow later used here 24 25error[E0499]: cannot borrow `data` as mutable more than once at a time 26 --> $DIR/loan_ends_mid_block_vec.rs:15:5 27 | 28LL | let slice = &mut data; 29 | --------- first mutable borrow occurs here 30... 31LL | data.push('f'); 32 | ^^^^ second mutable borrow occurs here 33LL | 34LL | capitalize(slice); 35 | ----- first borrow later used here 36 37error: aborting due to 3 previous errors 38 39For more information about this error, try `rustc --explain E0499`.