rust/tests/ui/issues/issue-16994.rs
2023-01-11 09:32:08 +00:00

10 lines
185 B
Rust

// check-pass
fn cb<'a,T>(_x: Box<dyn Fn((&'a i32, &'a (Vec<&'static i32>, bool))) -> T>) -> T {
panic!()
}
fn main() {
cb(Box::new(|(k, &(ref v, b))| (*k, v.clone(), b)));
}