fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
566 B14 linesraw
1error[E0499]: cannot borrow `thing` as mutable more than once at a time
2  --> $DIR/retain-resume-ref.rs:23:25
3   |
4LL |     gen.as_mut().resume(&mut thing);
5   |                         ---------- first mutable borrow occurs here
6LL |     gen.as_mut().resume(&mut thing);
7   |                         ^^^^^^^^^^ second mutable borrow occurs here
8LL |
9LL | }
10   | - first borrow might be used here, when `gen` is dropped and runs the destructor for generator
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0499`.