1 error[E0499]: cannot borrow `foo` as mutable more than once at a time
2 --> $DIR/two-phase-multi-mut.rs:11:5
4 LL | foo.method(&mut foo);
7 | | | first mutable borrow occurs here
8 | | first borrow later used by call
9 | second mutable borrow occurs here
11 error[E0499]: cannot borrow `foo` as mutable more than once at a time
12 --> $DIR/two-phase-multi-mut.rs:11:16
14 LL | foo.method(&mut foo);
15 | -----------^^^^^^^^-
17 | | | second mutable borrow occurs here
18 | | first borrow later used by call
19 | first mutable borrow occurs here
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0499`.