mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
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:
@@ -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() {}
|
||||
Reference in New Issue
Block a user