I seem to have lost a fight with the @rustlang borrow checker, trying to compile gist.github.com/dbaron/0c0ee…
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...

Apr 25, 2017 · 8:27 AM UTC

2
Several people care about improving error messages, it’s worth filing an issue.
1
1
So the solution here is "main_loop_iteration<'a>(server: &'a IrcServer, irc_state: &mut IRCState<'a>, ...) ...
1