Domain not in remote thumbnail source whitelist: www.rust-lang.org
from The Rust Programming Language Forum
Ever wanted to write this kind of code ? fn main () { let mut iterator = (0 .. 10).into_iter(); for x in iterator.take(3) { println!("{} is in the podium!", x); }; for x in iterator { println!("{} is not, but maybe next time?", x); }; } playground Obviously it cannot work since .take(n) takes (duh) ownership of iterator. This can however be fixed by (mutably) borrowing iterator for the time of that first iteration: fn main () { let mut iterator = (0 ...