rust/src/test/ui/issues/issue-16994.rs
2018-12-25 21:08:33 -07:00

11 lines
199 B
Rust

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