2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_variables)]
|
2019-05-28 13:47:21 -05:00
|
|
|
fn id<'c, 'b>(f: &'c &'b dyn Fn(&i32)) -> &'c &'b dyn Fn(&'static i32) {
|
2018-01-30 16:23:25 -06:00
|
|
|
f
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2019-05-28 13:47:21 -05:00
|
|
|
let f: &dyn Fn(&i32) = &|x| {};
|
2018-01-30 16:23:25 -06:00
|
|
|
id(&f);
|
|
|
|
}
|