can borrow mut in proc Issue 10617

#10617