rust/tests/ui/lifetimes/issue-67498.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
359 B
Rust
Raw Normal View History

//@ check-pass
2022-06-08 10:09:28 -05:00
// 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() {}