Skip to content

Commit 6091089

Browse files
committed
rust-1.15: avoid Self in constraint
1 parent d6fa4ac commit 6091089

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ macro_rules! impl_sum_iter_type {
319319
($res:ty) => {
320320
impl<T> Sum<T> for $res
321321
where
322-
$res: Add<T, Output=Self>
322+
$res: Add<T, Output=$res>
323323
{
324324
fn sum<I>(iter: I) -> Self
325325
where
@@ -335,7 +335,7 @@ macro_rules! impl_product_iter_type {
335335
($res:ty) => {
336336
impl<T> Product<T> for $res
337337
where
338-
$res: Mul<T, Output=Self>
338+
$res: Mul<T, Output=$res>
339339
{
340340
fn product<I>(iter: I) -> Self
341341
where

0 commit comments

Comments
 (0)