The following code prints "foo" 4 times with stable and beta, but prints nothing with rustc 1.33.0-nightly (93c2f05 2018-12-15).
fn main() {
std::iter::once(0).cycle().skip(1).take(4).for_each(|_| println!("foo"));
}
Replacing once() by something else or replacing for_each() with map() exhibits the same behaviour.
The following code prints "foo" 4 times with stable and beta, but prints nothing with rustc 1.33.0-nightly (93c2f05 2018-12-15).
Replacing
once()by something else or replacingfor_each()withmap()exhibits the same behaviour.