diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 9fc16b55631a4d5d15867b33e7033df4f656f33f..da1462a7047589c408db1d59963fc6a7dead9f4d 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -2016,7 +2016,7 @@ pub struct RangeInclusive { /// Return an iterator over the range [start, stop] #[inline] -pub fn range_inclusive + Ord + Clone + One + ToPrimitive>(start: A, stop: A) +pub fn range_inclusive + Ord + Clone + One>(start: A, stop: A) -> RangeInclusive { RangeInclusive{range: range(start, stop), done: false} }