]>
Commit | Line | Data |
---|---|---|
0731742a | 1 | error[E0499]: cannot borrow `**other` as mutable more than once at a time |
416331ca | 2 | --> $DIR/issue-46589.rs:23:21 |
0731742a XL |
3 | | |
4 | LL | *other = match (*other).get_self() { | |
c295e0f8 | 5 | | ------------------- first mutable borrow occurs here |
0731742a XL |
6 | LL | Some(s) => s, |
7 | LL | None => (*other).new_self() | |
c295e0f8 | 8 | | ^^^^^^^^^^^^^^^^^^^ |
0731742a XL |
9 | | | |
10 | | second mutable borrow occurs here | |
11 | | first borrow later used here | |
12 | ||
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0499`. |