blob: 8f80489ea1aeb02539dc589d40bc4c4dc1b1a630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error[E0499]: cannot borrow `v` as mutable more than once at a time
--> $DIR/one_line.rs:15:12
|
15 | v.push(v.pop().unwrap());
| - ^ - first borrow ends here
| | |
| | second mutable borrow occurs here
| first mutable borrow occurs here
error: aborting due to previous error
|