On 29/05/2014 19:22, Vladimir Matveev wrote:
Hi, Christophe,

Won't wrapping the first `for` loop into curly braces help? I suspect
this happens because of `for` loop desugaring, which kind of "leaves"
the iterator created by `execute_query()` "in scope" (not really, but
only for borrow checker).

If that’s the case, it sounds like a bug with an easy fix.

--
Simon Sapin
_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to