rust/tests/ui/crashes/ice-9041.rs
2023-08-11 14:02:28 +00:00

9 lines
211 B
Rust

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()
}
fn main() {}