2020-01-24 14:56:08 -06:00
|
|
|
error[E0499]: cannot borrow `thing` as mutable more than once at a time
|
2022-10-01 05:19:31 -05:00
|
|
|
--> $DIR/retain-resume-ref.rs:27:25
|
2020-01-24 14:56:08 -06:00
|
|
|
|
|
|
|
|
LL | gen.as_mut().resume(&mut thing);
|
|
|
|
| ---------- first mutable borrow occurs here
|
|
|
|
LL | gen.as_mut().resume(&mut thing);
|
2020-03-14 18:24:47 -05:00
|
|
|
| ------ ^^^^^^^^^^ second mutable borrow occurs here
|
|
|
|
| |
|
|
|
|
| first borrow later used by call
|
2020-01-24 14:56:08 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0499`.
|