1 error: used `flat_map` where `filter_map` could be used instead
2 --> $DIR/flat_map_option.rs:8:24
4 LL | let _ = [1].iter().flat_map(c);
5 | ^^^^^^^^ help: try: `filter_map`
7 = note: `-D clippy::flat-map-option` implied by `-D warnings`
9 error: used `flat_map` where `filter_map` could be used instead
10 --> $DIR/flat_map_option.rs:9:24
12 LL | let _ = [1].iter().flat_map(Some);
13 | ^^^^^^^^ help: try: `filter_map`
15 error: aborting due to 2 previous errors