Skip to content

Commit 0f2a2fb

Browse files
committed
Add regresion test for #67498
1 parent 1a97162 commit 0f2a2fb

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/test/ui/lifetimes/issue-67498.rs

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// check-pass
2+
3+
// Regression test for #67498.
4+
5+
pub fn f<'a, 'b, 'd, 'e> (
6+
x: for<'c> fn(
7+
fn(&'c fn(&'c ())),
8+
fn(&'c fn(&'c ())),
9+
fn(&'c fn(&'c ())),
10+
fn(&'c fn(&'c ())),
11+
)
12+
) -> fn(
13+
fn(&'a fn(&'d ())),
14+
fn(&'b fn(&'d ())),
15+
fn(&'a fn(&'e ())),
16+
fn(&'b fn(&'e ())),
17+
) {
18+
x
19+
}
20+
21+
fn main() {}

0 commit comments

Comments
 (0)