2023-06-29 02:26:45 -05:00
|
|
|
error: usage of `Iterator::fold` on a type that implements `Try`
|
2023-06-23 05:43:53 -05:00
|
|
|
--> $DIR/manual_try_fold.rs:61:10
|
|
|
|
|
|
|
|
|
LL | .fold(Some(0i32), |sum, i| sum?.checked_add(*i))
|
2023-06-25 09:01:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(0i32, |sum, i| ...)`
|
2023-06-23 05:43:53 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::manual-try-fold` implied by `-D warnings`
|
|
|
|
|
2023-06-29 02:26:45 -05:00
|
|
|
error: usage of `Iterator::fold` on a type that implements `Try`
|
2023-06-23 05:43:53 -05:00
|
|
|
--> $DIR/manual_try_fold.rs:65:10
|
|
|
|
|
|
|
|
|
LL | .fold(NotOption(0i32, 0i32), |sum, i| NotOption(0i32, 0i32));
|
2023-06-25 09:01:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(..., |sum, i| ...)`
|
2023-06-23 05:43:53 -05:00
|
|
|
|
2023-06-29 02:26:45 -05:00
|
|
|
error: usage of `Iterator::fold` on a type that implements `Try`
|
2023-06-23 05:43:53 -05:00
|
|
|
--> $DIR/manual_try_fold.rs:68:10
|
|
|
|
|
|
|
|
|
LL | .fold(NotOptionButWorse(0i32), |sum, i| NotOptionButWorse(0i32));
|
2023-06-25 09:01:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(0i32, |sum, i| ...)`
|
2023-06-23 05:43:53 -05:00
|
|
|
|
2023-06-29 02:26:45 -05:00
|
|
|
error: usage of `Iterator::fold` on a type that implements `Try`
|
2023-06-23 05:48:59 -05:00
|
|
|
--> $DIR/manual_try_fold.rs:98:10
|
|
|
|
|
|
|
|
|
LL | .fold(Some(0i32), |sum, i| sum?.checked_add(*i))
|
2023-06-25 09:01:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `try_fold` instead: `try_fold(0i32, |sum, i| ...)`
|
2023-06-23 05:48:59 -05:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
2023-06-23 05:43:53 -05:00
|
|
|
|