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
Try naming the lifetime parameters of main_loop_iteration in case that improves the error message?
1
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
My guess is Rust fails to figure out the 'opt lifetime for handle_bot_command somehow...
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.