2018-12-06 08:47:30 -06:00
|
|
|
error[E0499]: cannot borrow `**other` as mutable more than once at a time
|
2019-07-16 10:34:06 -05:00
|
|
|
--> $DIR/issue-46589.rs:23:21
|
2018-12-06 08:47:30 -06:00
|
|
|
|
|
|
|
|
LL | *other = match (*other).get_self() {
|
2023-06-22 15:30:23 -05:00
|
|
|
| -------- first mutable borrow occurs here
|
2018-12-06 08:47:30 -06:00
|
|
|
LL | Some(s) => s,
|
|
|
|
LL | None => (*other).new_self()
|
2023-06-22 15:30:23 -05:00
|
|
|
| ^^^^^^^^
|
2018-12-06 08:47:30 -06:00
|
|
|
| |
|
|
|
|
| second mutable borrow occurs here
|
|
|
|
| first borrow later used here
|
|
|
|
|
2018-12-17 06:11:33 -06:00
|
|
|
error: aborting due to previous error
|
2018-12-06 08:47:30 -06:00
|
|
|
|
2018-12-17 06:11:33 -06:00
|
|
|
For more information about this error, try `rustc --explain E0499`.
|