]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/flat_map_option.stderr
New upstream version 1.53.0+dfsg1
[rustc.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