summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/filter_map_next.stderr
blob: 1841553917ff57849acbe4697854f7f0edf39469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error: called `filter_map(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find_map(..)` instead
  --> $DIR/filter_map_next.rs:7:26
   |
LL |       let _: Option<u32> = vec![1, 2, 3, 4, 5, 6]
   |  __________________________^
LL | |
LL | |
LL | |         .into_iter()
...  |
LL | |         })
LL | |         .next();
   | |_______________^
   |
   = note: `-D clippy::filter-map-next` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::filter_map_next)]`

error: aborting due to previous error