summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/flat_map_identity.stderr
blob: e776c9fdf512e2bda03316138086e2eabd4e2dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: use of `flat_map` with an identity function
  --> $DIR/flat_map_identity.rs:10:22
   |
LL |     let _ = iterator.flat_map(|x| x);
   |                      ^^^^^^^^^^^^^^^ help: try: `flatten()`
   |
   = note: `-D clippy::flat-map-identity` implied by `-D warnings`

error: use of `flat_map` with an identity function
  --> $DIR/flat_map_identity.rs:13:22
   |
LL |     let _ = iterator.flat_map(convert::identity);
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`

error: use of `flat_map` with an identity function
  --> $DIR/flat_map_identity.rs:16:22
   |
LL |     let _ = iterator.flat_map(|x| return x);
   |                      ^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`

error: aborting due to 3 previous errors