mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
9 lines
186 B
Rust
9 lines
186 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)));
|
|
}
|