fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
532 B13 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
8   |                  |
9   |                  first borrow later used by call
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0499`.