]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/filter_map_identity.stderr
Rollup merge of #100291 - WaffleLapkin:cstr_const_methods, r=oli-obk
[rust.git] / src / tools / clippy / tests / ui / filter_map_identity.stderr
1 error: use of `filter_map` with an identity function
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: use of `filter_map` with an identity function
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: use of `filter_map` with an identity function
16   --> $DIR/filter_map_identity.rs:15:22
17    |
18 LL |     let _ = iterator.filter_map(identity);
19    |                      ^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
20
21 error: use of `filter_map` with an identity function
22   --> $DIR/filter_map_identity.rs:18:22
23    |
24 LL |     let _ = iterator.filter_map(|x| return x);
25    |                      ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
26
27 error: aborting due to 4 previous errors
28