]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/flat_map_identity.stderr
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / tests / ui / flat_map_identity.stderr
1 error: called `flat_map(|x| x)` on an `Iterator`
2   --> $DIR/flat_map_identity.rs:10:22
3    |
4 LL |     let _ = iterator.flat_map(|x| x);
5    |                      ^^^^^^^^^^^^^^^ help: try: `flatten()`
6    |
7    = note: `-D clippy::flat-map-identity` implied by `-D warnings`
8
9 error: called `flat_map(std::convert::identity)` on an `Iterator`
10   --> $DIR/flat_map_identity.rs:13:22
11    |
12 LL |     let _ = iterator.flat_map(convert::identity);
13    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
14
15 error: aborting due to 2 previous errors
16