2022-07-18 02:39:37 -05:00
|
|
|
pub struct Thing;
|
2023-08-24 14:32:12 -05:00
|
|
|
//@no-rustfix
|
2022-07-18 02:39:37 -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-08-24 14:32:12 -05:00
|
|
|
//~^ ERROR: called `is_some()` after searching an `Iterator` with `find`
|
|
|
|
//~| NOTE: `-D clippy::search-is-some` implied by `-D warnings`
|
2022-07-18 02:39:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|