2021-06-07 21:10:42 +00:00
|
|
|
error: use of `flat_map` with an identity function
|
2021-02-03 15:06:26 +00:00
|
|
|
--> $DIR/flat_map_identity.rs:10:22
|
2019-06-24 09:21:29 +00:00
|
|
|
|
|
2019-08-13 19:50:52 +00:00
|
|
|
LL | let _ = iterator.flat_map(|x| x);
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `flatten()`
|
2019-06-24 09:21:29 +00:00
|
|
|
|
|
2019-08-11 18:34:25 +00:00
|
|
|
= note: `-D clippy::flat-map-identity` implied by `-D warnings`
|
2019-06-24 09:21:29 +00:00
|
|
|
|
2021-06-07 21:10:42 +00:00
|
|
|
error: use of `flat_map` with an identity function
|
2021-02-03 15:06:26 +00:00
|
|
|
--> $DIR/flat_map_identity.rs:13:22
|
2019-08-11 17:51:43 +00:00
|
|
|
|
|
2019-08-13 19:50:52 +00:00
|
|
|
LL | let _ = iterator.flat_map(convert::identity);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
|
2019-08-11 17:51:43 +00:00
|
|
|
|
2021-06-07 21:10:42 +00:00
|
|
|
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
|
2019-06-24 09:21:29 +00:00
|
|
|
|