]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/flat_map_option.stderr
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[rust.git] / src / tools / clippy / tests / ui / flat_map_option.stderr
1 error: used `flat_map` where `filter_map` could be used instead
2   --> $DIR/flat_map_option.rs:8:24
3    |
4 LL |     let _ = [1].iter().flat_map(c);
5    |                        ^^^^^^^^ help: try: `filter_map`
6    |
7    = note: `-D clippy::flat-map-option` implied by `-D warnings`
8
9 error: used `flat_map` where `filter_map` could be used instead
10   --> $DIR/flat_map_option.rs:9:24
11    |
12 LL |     let _ = [1].iter().flat_map(Some);
13    |                        ^^^^^^^^ help: try: `filter_map`
14
15 error: aborting due to 2 previous errors
16