using "use std::iter" rather than "extern crate std"