1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// check-pass // Regression test for #67498. pub fn f<'a, 'b, 'd, 'e> ( x: for<'c> fn( fn(&'c fn(&'c ())), fn(&'c fn(&'c ())), fn(&'c fn(&'c ())), fn(&'c fn(&'c ())), ) ) -> fn( fn(&'a fn(&'d ())), fn(&'b fn(&'d ())), fn(&'a fn(&'e ())), fn(&'b fn(&'e ())), ) { x } fn main() {}