diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index b0fd52896fe..12e65851a8a 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -54,7 +54,7 @@ //! //! This `for` loop syntax can be applied to any iterator over any type. -pub use self::MinMaxResult::*; +use self::MinMaxResult::*; use clone::Clone; use cmp; @@ -1035,7 +1035,7 @@ pub trait IteratorOrdExt { /// # Example /// /// ```rust - /// use std::iter::{NoElements, OneElement, MinMax}; + /// use std::iter::MinMaxResult::{NoElements, OneElement, MinMax}; /// /// let v: [int, ..0] = []; /// assert_eq!(v.iter().min_max(), NoElements); @@ -1145,7 +1145,7 @@ impl MinMaxResult { /// # Example /// /// ```rust - /// use std::iter::{NoElements, OneElement, MinMax, MinMaxResult}; + /// use std::iter::MinMaxResult::{mod, NoElements, OneElement, MinMax}; /// /// let r: MinMaxResult = NoElements; /// assert_eq!(r.into_option(), None); diff --git a/src/libcoretest/iter.rs b/src/libcoretest/iter.rs index dbbbaa5892c..93a87669fc5 100644 --- a/src/libcoretest/iter.rs +++ b/src/libcoretest/iter.rs @@ -10,6 +10,7 @@ use core::iter::*; use core::iter::order::*; +use core::iter::MinMaxResult::*; use core::num::SignedInt; use core::uint; use core::cmp;