]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/filter_map_next.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / filter_map_next.stderr
CommitLineData
f20569fa
XL
1error: called `filter_map(..).next()` on an `Iterator`. This is more succinctly expressed by calling `.find_map(..)` instead
2 --> $DIR/filter_map_next.rs:7:26
3 |
4LL | let _: Option<u32> = vec![1, 2, 3, 4, 5, 6]
5 | __________________________^
6LL | | .into_iter()
7LL | | .filter_map(|x| {
8LL | | if x == 2 {
9... |
10LL | | })
11LL | | .next();
12 | |_______________^
13 |
14 = note: `-D clippy::filter-map-next` implied by `-D warnings`
15
16error: aborting due to previous error
17