11 lines
172 B
Rust
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);
|
|
}
|