rust/tests/ui/issues/auxiliary/issue-2723-a.rs

4 lines
115 B
Rust

pub unsafe fn f(xs: Vec<isize> ) {
xs.iter().map(|_x| { unsafe fn q() { panic!(); } }).collect::<Vec<()>>();
}