2018-04-06 14:00:45 -05:00
|
|
|
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/two-phase-multi-mut.rs:11:5
|
2018-04-06 14:00:45 -05:00
|
|
|
|
|
|
|
|
LL | foo.method(&mut foo);
|
2018-09-29 05:47:47 -05:00
|
|
|
| ^^^^------^--------^
|
|
|
|
| | | |
|
|
|
|
| | | first mutable borrow occurs here
|
|
|
|
| | first borrow later used by call
|
2018-07-31 07:36:50 -05:00
|
|
|
| second mutable borrow occurs here
|
2018-04-06 14:00:45 -05:00
|
|
|
|
|
|
|
error[E0499]: cannot borrow `foo` as mutable more than once at a time
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/two-phase-multi-mut.rs:11:16
|
2018-04-06 14:00:45 -05:00
|
|
|
|
|
|
|
|
LL | foo.method(&mut foo);
|
2023-06-22 15:30:23 -05:00
|
|
|
| --- ------ ^^^^^^^^ second mutable borrow occurs here
|
|
|
|
| | |
|
2018-09-29 05:47:47 -05:00
|
|
|
| | first borrow later used by call
|
2018-07-31 07:36:50 -05:00
|
|
|
| first mutable borrow occurs here
|
2018-04-06 14:00:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0499`.
|