mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
22 lines
359 B
Rust
22 lines
359 B
Rust
//@ 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() {}
|