Skip to content

Commit

Permalink
Rollup merge of rust-lang#97882 - JohnTitor:issue-67498, r=compiler-e…
Browse files Browse the repository at this point in the history
…rrors

Add regresion test for rust-lang#67498

Closes rust-lang#67498
r? ``@compiler-errors``
  • Loading branch information
matthiaskrgr authored Jun 8, 2022
2 parents 8ca1f36 + 0f2a2fb commit c84db32
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 c84db32

Please sign in to comment.