[rust-dev] Question about lifetime analysis (a 0.5 transition question)
lucian.branescu at gmail.com
Sat Dec 22 10:42:33 PST 2012
I think the problem is the compiler can't guarantee the managed box will
survive, so it won't allow a borrowed pointer.
I think there are problems in general with @ and borrowing.
I've converted the red-black tree I wrote to use iter::BaseIter but am now
fighting with lifetime analysis with the switch to 0.5.
And the error I'm getting with 0.5 is:
I've read the docs on lifetimes several times now but it's not quite enough
to get me over this hurdle.
Rust-dev mailing list
Rust-dev at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rust-dev