fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0502]: cannot borrow `y` as immutable because it is also borrowed as mutable 2 --> $DIR/dropck-resume.rs:25:13 3 | 4LL | let z = &mut y; 5 | ------ mutable borrow occurs here 6... 7LL | r = y.as_ref().unwrap(); 8 | ^ immutable borrow occurs here 9LL | 10LL | } 11 | - mutable borrow might be used here, when `g` is dropped and runs the destructor for generator 12 13error: aborting due to previous error 14 15For more information about this error, try `rustc --explain E0502`.