Open
Description
I tried this code:
#![feature(iter_array_chunks)]
fn main() {
let line = "abc";
let mut chunks = line.chars().array_chunks::<3>();
let _result: Vec<_> = chunks.by_ref().collect();
if let Some(rem) = chunks.into_remainder() {
assert!(rem.count() != 0);
}
}
I expected to see this happen: into_remainder returns None when there is no remainder
Instead, this happened: into_remainder returns Some of an iterator with zero elements