rust/src/test/run-pass/issues/issue-47638.rs
2018-12-25 21:08:33 -07:00

11 lines
172 B
Rust

// run-pass
#![allow(unused_variables)]
fn id<'c, 'b>(f: &'c &'b Fn(&i32)) -> &'c &'b Fn(&'static i32) {
f
}
fn main() {
let f: &Fn(&i32) = &|x| {};
id(&f);
}