How to solve the error: "use of moved value: cur.next" It would be so much simple in c++, how does safety give me so much constraint?
cur.next