about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/crashes/ice-9041.rs
blob: 4b2a0f95311486e12617e42970a7a65b25ab7cce (plain)
1
2
3
4
5
6
7
8
9
pub struct Thing;
//@no-rustfix
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()
    //~^ search_is_some
}

fn main() {}