Add regresion test for #67498

This commit is contained in:
Yuki Okushi 2022-06-09 00:09:28 +09:00
parent 1a97162cb2
commit 0f2a2fbc05
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

View File

@ -0,0 +1,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() {}