2022-10-01 05:19:31 -05:00
|
|
|
error[E0499]: cannot borrow `thing` as mutable more than once at a time
|
2023-05-07 13:38:52 -05:00
|
|
|
--> $DIR/retain-resume-ref.rs:23:25
|
2022-10-01 05:19:31 -05:00
|
|
|
|
|
|
|
|
LL | gen.as_mut().resume(&mut thing);
|
|
|
|
| ---------- first mutable borrow occurs here
|
|
|
|
LL | gen.as_mut().resume(&mut thing);
|
2023-10-24 12:16:15 -05:00
|
|
|
| ------ ^^^^^^^^^^ second mutable borrow occurs here
|
|
|
|
| |
|
|
|
|
| first borrow later used by call
|
2022-10-01 05:19:31 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-10-01 05:19:31 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0499`.
|