diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 9fc16b55631a4..da1462a704758 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} }