We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6fa4ac commit 6091089Copy full SHA for 6091089
src/macros.rs
@@ -319,7 +319,7 @@ macro_rules! impl_sum_iter_type {
319
($res:ty) => {
320
impl<T> Sum<T> for $res
321
where
322
- $res: Add<T, Output=Self>
+ $res: Add<T, Output=$res>
323
{
324
fn sum<I>(iter: I) -> Self
325
@@ -335,7 +335,7 @@ macro_rules! impl_product_iter_type {
335
336
impl<T> Product<T> for $res
337
338
- $res: Mul<T, Output=Self>
+ $res: Mul<T, Output=$res>
339
340
fn product<I>(iter: I) -> Self
341
0 commit comments