fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
517 B15 linesraw
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`.