diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-12-15 13:02:14 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2016-01-04 05:18:56 -0500 |
| commit | 15d32ffbb2cbd8a49bcbfca396423d4f8ca5048f (patch) | |
| tree | d637216a15b362bf28d93bdf62ca44fa0572f337 /src/libcore | |
| parent | 191ff2d8fd57a8238d85302a8f06e2bd11b2f6d2 (diff) | |
Feature-gate defaulted type parameters outside of types.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<S=<Self as Iterator>::Item>(self) -> S where + fn sum<S>(self) -> S where S: Add<Self::Item, Output=S> + Zero, Self: Sized, { @@ -2157,7 +2157,7 @@ pub trait Iterator { /// ``` #[unstable(feature="iter_arith", reason = "bounds recently changed", issue = "27739")] - fn product<P=<Self as Iterator>::Item>(self) -> P where + fn product<P>(self) -> P where P: Mul<Self::Item, Output=P> + One, Self: Sized, { |
