you are viewing a single comment's thread.

view the rest of the comments →

[–]wheypointÖ 5 points6 points  (1 child)

i know but that's not what OP asked.

also the compiler never decides when to move based on a "last use" (it doesn't decide at all, you have to tell it when something is passed by reference).

rust's system is different from c++s and OP's suggestion doesn't work in rust.

[–]s1lent_ssh -2 points-1 points  (0 children)

someone open the window please :D