While I'm trying to argue why the proposed solution is not a full solution to 
the proposed problem, I don't even think that the proposed problem is a 
problem. Here's why: if you make a call foo(arg) and never use arg after that, 
then you don't care if arg gets moved or borrowed. And if you try to use arg 
afterwards and foo did in fact move it previously, then your IDE is going to 
tell you about it by drawing a red squiggly line under that incorrect use of 
arg.
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to