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