Uhhh fixed it by setting r to outlive x. I Don't know if that was correct.

This commit is contained in:
Tom Alexander 2022-12-10 22:25:54 -05:00
parent ea63793b36
commit 5b645c67e5
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ use tracing::trace;
type UnboundMatcher<'r, I, O, E> = dyn Fn(Context<'r>, I) -> IResult<I, O, E>;
fn context_many_till<'r, 'x, I, O, E, F, M, T>(
fn context_many_till<'r: 'x, 'x, I, O, E, F, M, T>(
context: Context<'r>,
mut many_matcher: M,
mut till_matcher: T,