From 15d32ffbb2cbd8a49bcbfca396423d4f8ca5048f Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 15 Dec 2015 13:02:14 -0500 Subject: Feature-gate defaulted type parameters outside of types. --- src/libcore/iter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 6f052f964c6..a30e5b1372a 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -2132,7 +2132,7 @@ pub trait Iterator { /// ``` #[unstable(feature = "iter_arith", reason = "bounds recently changed", issue = "27739")] - fn sum::Item>(self) -> S where + fn sum(self) -> S where S: Add + Zero, Self: Sized, { @@ -2157,7 +2157,7 @@ pub trait Iterator { /// ``` #[unstable(feature="iter_arith", reason = "bounds recently changed", issue = "27739")] - fn product::Item>(self) -> P where + fn product

(self) -> P where P: Mul + One, Self: Sized, { -- cgit 1.4.1-3-g733a5