]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/filter_map_identity.stderr
Auto merge of #84620 - Dylan-DPC:rollup-wkv97im, r=Dylan-DPC
[rust.git] / src / tools / clippy / tests / ui / filter_map_identity.stderr
1 error: called `filter_map(|x| x)` on an `Iterator`
2   --> $DIR/filter_map_identity.rs:8:22
3    |
4 LL |     let _ = iterator.filter_map(|x| x);
5    |                      ^^^^^^^^^^^^^^^^^ help: try: `flatten()`
6    |
7    = note: `-D clippy::filter-map-identity` implied by `-D warnings`
8
9 error: called `filter_map(std::convert::identity)` on an `Iterator`
10   --> $DIR/filter_map_identity.rs:11:22
11    |
12 LL |     let _ = iterator.filter_map(std::convert::identity);
13    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
14
15 error: called `filter_map(std::convert::identity)` on an `Iterator`
16   --> $DIR/filter_map_identity.rs:15:22
17    |
18 LL |     let _ = iterator.filter_map(identity);
19    |                      ^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
20
21 error: aborting due to 3 previous errors
22