On Tuesday, 3 March 2015 at 00:08:10 UTC, Walter Bright wrote:
On 3/2/2015 3:47 PM, weaselcat wrote:
That's actually very old(0.6 - nearly 2 years ago.) I believe rooting was
dropped from the language completely.

http://doc.rust-lang.org/book/ownership.html

also, rust by example chapter 17-19 cover this
http://rustbyexample.com/move.html

Thanks for the info. But I don't see how Marc's example is prevented by this.

After moving resources, the previous owner can no longer be used.

That means you cannot borrow twice, which mean you can't get yourself into the mentioned situation.

Reply via email to