]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/flat_map_identity.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / flat_map_identity.stderr
CommitLineData
f20569fa
XL
1error: called `flat_map(|x| x)` on an `Iterator`
2 --> $DIR/flat_map_identity.rs:10:22
3 |
4LL | let _ = iterator.flat_map(|x| x);
5 | ^^^^^^^^^^^^^^^ help: try: `flatten()`
6 |
7 = note: `-D clippy::flat-map-identity` implied by `-D warnings`
8
9error: called `flat_map(std::convert::identity)` on an `Iterator`
10 --> $DIR/flat_map_identity.rs:13:22
11 |
12LL | let _ = iterator.flat_map(convert::identity);
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `flatten()`
14
15error: aborting due to 2 previous errors
16