Rollup merge of #97882 - JohnTitor:issue-67498, r=compiler-errors

Add regresion test for #67498

Closes #67498
r? `@compiler-errors`
This commit is contained in:
Michael Goulet 2022-06-08 13:32:23 -07:00 committed by GitHub
commit a36671a24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {}