The tail portion of the pattern effectively borrows a vector, but the borrow checker knew nothing about this. r=catamorphism