2016-07-13 16:53:42 -05:00
|
|
|
error[E0499]: cannot borrow `v` as mutable more than once at a time
|
2016-08-16 02:52:30 -05:00
|
|
|
--> $DIR/one_line.rs:13:12
|
2016-07-13 16:53:42 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | v.push(v.pop().unwrap()); //~ ERROR cannot borrow
|
2016-07-13 16:53:42 -05:00
|
|
|
| - ^ - first borrow ends here
|
|
|
|
| | |
|
|
|
|
| | second mutable borrow occurs here
|
|
|
|
| first mutable borrow occurs here
|
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2016-07-13 16:53:42 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0499`.
|