1 error: called `inspect(..).for_each(..)` on an `Iterator`
2 --> $DIR/inspect_for_each.rs:7:19
4 LL | a.into_iter().inspect(|x| assert!(*x > 0)).for_each(|x| {
6 LL | | let y = do_some(x);
7 LL | | let z = do_more(y);
12 = note: `-D clippy::inspect-for-each` implied by `-D warnings`
13 = help: move the code from `inspect(..)` to `for_each(..)` and remove the `inspect(..)`
15 error: aborting due to previous error