Skip to content

Commit

Permalink
Add regresion test for rust-lang#67498
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jun 8, 2022
1 parent 1a97162 commit 0f2a2fb
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 0f2a2fb

Please sign in to comment.