summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-16994.rs
blob: 8d3074bcee9cc6251086ee223314e8fde8c48da4 (plain)
1
2
3
4
5
6
7
8
9
// 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)));
}