fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0506]: cannot assign to `a` because it is borrowed 2 --> $DIR/ret-ref.rs:16:5 3 | 4LL | let future = multiple_named_lifetimes(&a, &b); 5 | -- `a` is borrowed here 6LL | a += 1; 7 | ^^^^^^ `a` is assigned to here but it was already borrowed 8LL | b += 1; 9LL | let p = future.await; 10 | ------ borrow later used here 11 12error[E0506]: cannot assign to `b` because it is borrowed 13 --> $DIR/ret-ref.rs:17:5 14 | 15LL | let future = multiple_named_lifetimes(&a, &b); 16 | -- `b` is borrowed here 17LL | a += 1; 18LL | b += 1; 19 | ^^^^^^ `b` is assigned to here but it was already borrowed 20LL | let p = future.await; 21 | ------ borrow later used here 22 23error[E0506]: cannot assign to `a` because it is borrowed 24 --> $DIR/ret-ref.rs:28:5 25 | 26LL | let future = multiple_named_lifetimes(&a, &b); 27 | -- `a` is borrowed here 28LL | let p = future.await; 29LL | a += 1; 30 | ^^^^^^ `a` is assigned to here but it was already borrowed 31LL | b += 1; 32LL | drop(p); 33 | - borrow later used here 34 35error: aborting due to 3 previous errors 36 37For more information about this error, try `rustc --explain E0506`.