Skip to content

Commit

Permalink
rust-1.15: avoid Self in constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 27, 2018
1 parent d6fa4ac commit 6091089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ macro_rules! impl_sum_iter_type {
($res:ty) => {
impl<T> Sum<T> for $res
where
$res: Add<T, Output=Self>
$res: Add<T, Output=$res>
{
fn sum<I>(iter: I) -> Self
where
Expand All @@ -335,7 +335,7 @@ macro_rules! impl_product_iter_type {
($res:ty) => {
impl<T> Product<T> for $res
where
$res: Mul<T, Output=Self>
$res: Mul<T, Output=$res>
{
fn product<I>(iter: I) -> Self
where
Expand Down

0 comments on commit 6091089

Please sign in to comment.