I'm pretty sure borrows always last until the end of the scope at the moment, no matter what.
-
-
Replying to @CryZe107 @ClaymorePT
Yes, borrows are lexially scoped. There's an RFC that makes them control-flow based instead, but it hasn't been acccepted yet.
1 reply 0 retweets 2 likes
Once it is, I believe this code Just Works
4:20 PM - 26 Aug 2017
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.