blob: 72648a92decf31d8457bb665ec750875218011b5 [file]
//! Regression test for https://github.com/rust-lang/rust/issues/16994
//@ 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)));
}