2018-07-15 14:11:54 -07:00
|
|
|
error[E0499]: cannot borrow `*s` as mutable more than once at a time
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-18566.rs:23:19
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
LL | MyPtr(s).poke(s);
|
2019-04-22 08:40:08 +01:00
|
|
|
| - ---- ^ second mutable borrow occurs here
|
|
|
|
| | |
|
|
|
|
| | first borrow later used by call
|
2018-07-15 14:11:54 -07:00
|
|
|
| first mutable borrow occurs here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0499`.
|