2016-07-13 17:53:42 -04:00
|
|
|
error[E0499]: cannot borrow `v` as mutable more than once at a time
|
2016-08-16 16:52:30 +09:00
|
|
|
--> $DIR/one_line.rs:13:12
|
2016-07-13 17:53:42 -04:00
|
|
|
|
|
2016-08-16 16:52:30 +09:00
|
|
|
13 | v.push(v.pop().unwrap());
|
2016-07-13 17:53:42 -04:00
|
|
|
| - ^ - first borrow ends here
|
|
|
|
| | |
|
|
|
|
| | second mutable borrow occurs here
|
|
|
|
| first mutable borrow occurs here
|
|
|
|
|
2017-07-02 13:49:30 +03:00
|
|
|
error: aborting due to previous error
|
2016-07-13 17:53:42 -04:00
|
|
|
|