Skip to content

Commit

Permalink
Rollup merge of #97882 - JohnTitor:issue-67498, r=compiler-errors
Browse files Browse the repository at this point in the history
Add regresion test for #67498

Closes #67498
r? `@compiler-errors`
  • Loading branch information
compiler-errors authored Jun 8, 2022
2 parents 1577838 + 0f2a2fb commit a36671a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/ui/lifetimes/issue-67498.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit a36671a

Please sign in to comment.