summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-9041.rs
blob: 55cc9bc99a0ede4f1421de1b01f6b4018c224f8e (plain)
1
2
3
4
5
6
7
8
pub struct Thing;

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()
}

fn main() {}