rust-clippy/tests/ui/flat_map_identity.stderr

17 lines
557 B
Text
Raw Normal View History

2019-08-12 19:42:57 +00:00
error: called `flat_map(|x| x)` on an `Iterator`
--> $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
|
= note: `-D clippy::flat-map-identity` implied by `-D warnings`
2019-06-24 09:21:29 +00:00
2019-08-12 19:42:57 +00:00
error: called `flat_map(std::convert::identity)` on an `Iterator`
--> $DIR/flat_map_identity.rs:13:22
|
2019-08-13 19:50:52 +00:00
LL | let _ = iterator.flat_map(convert::identity);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
error: aborting due to 2 previous errors
2019-06-24 09:21:29 +00:00