nitter
L. David Baron @dbaron@w3c.social
@davidbaron
25 Apr 2017
I seem to have lost a fight with the
@rustlang
borrow checker, trying to compile
gist.github.com/dbaron/0c0ee…
Apr 25, 2017 · 7:32 AM UTC
3
1
Simon Sapin
@SimonSapin
25 Apr 2017
Replying to
@davidbaron
@rustlang
Try naming the lifetime parameters of main_loop_iteration in case that improves the error message?
1
L. David Baron @dbaron@w3c.social
@davidbaron
25 Apr 2017
Yeah, I think I sorted it out now with lifetime parameters, but the error message was probably the least helpful one I've had so far...
2
more replies
Xidorn Quan
@upsuper
25 Apr 2017
Replying to
@davidbaron
@rustlang
My guess is Rust fails to figure out the 'opt lifetime for handle_bot_command somehow...
Xidorn Quan
@upsuper
25 Apr 2017
Replying to
@davidbaron
@rustlang
It seems Rust is actually correct that you are trying to move a ref to server outside the func. It fails to point out the location, though.