summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-9041.stderr
blob: f5038f0a84847ece291d92fd7cec1dd85acdfac6 (plain)
1
2
3
4
5
6
7
8
9
10
error: called `is_some()` after searching an `Iterator` with `find`
  --> $DIR/ice-9041.rs:5:19
   |
LL |     things.iter().find(|p| is_thing_ready(p)).is_some()
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `any()` instead: `any(|p| is_thing_ready(&p))`
   |
   = note: `-D clippy::search-is-some` implied by `-D warnings`

error: aborting due to previous error