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