232
Borrow checker rejects a loop that pushes to a vec while reading its last element Help
I have a and I'm iterating over incoming items, and for each one I want to look at the last element already in the vec to decide whether to merge or push a new one. The compiler tells me I can't borrow as mutable…