2022-07-04 13:25:31 -05:00
|
|
|
pub struct Thing;
|
2023-07-27 06:40:22 -05:00
|
|
|
//@no-rustfix
|
2022-07-04 13:25:31 -05:00
|
|
|
pub fn has_thing(things: &[Thing]) -> bool {
|
|
|
|
let is_thing_ready = |_peer: &Thing| -> bool { todo!() };
|
|
|
|
things.iter().find(|p| is_thing_ready(p)).is_some()
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: called `is_some()` after searching an `Iterator` with `find`
|
|
|
|
//~| NOTE: `-D clippy::search-is-some` implied by `-D warnings`
|
2022-07-04 13:25:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|