Add regresion test for #67498
This commit is contained in:
parent
1a97162cb2
commit
0f2a2fbc05
21
src/test/ui/lifetimes/issue-67498.rs
Normal file
21
src/test/ui/lifetimes/issue-67498.rs
Normal file
@ -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() {}
|
Loading…
x
Reference in New Issue
Block a user