1 error[E0502]: cannot borrow `y` as immutable because it is also borrowed as mutable
2 --> $DIR/dropck-resume.rs:25:13
5 | ------ mutable borrow occurs here
7 LL | r = y.as_ref().unwrap();
8 | ^^^^^^^^^^ immutable borrow occurs here
11 | - mutable borrow might be used here, when `g` is dropped and runs the destructor for generator
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0502`.