mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Rollup merge of #97882 - JohnTitor:issue-67498, r=compiler-errors
Add regresion test for #67498 Closes #67498 r? `@compiler-errors`
This commit is contained in:
commit
a36671a24e
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…
Reference in New Issue
Block a user