diff --git a/src/ascii/mod.rs b/src/ascii/mod.rs
index 504fdd74..814f14f6 100644
--- a/src/ascii/mod.rs
+++ b/src/ascii/mod.rs
@@ -1589,13 +1589,13 @@ where
/// assert_eq!(esc(Partial::new("12\\\"34;")), Ok((Partial::new(";"), "12\\\"34")));
/// ```
#[inline(always)]
-pub fn take_escaped<'i, Input: 'i, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
+pub fn take_escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
mut normal: Normal,
control_char: char,
mut escapable: Escapable,
) -> impl Parser::Slice, Error>
where
- Input: StreamIsPartial + Stream + Compare,
+ Input: StreamIsPartial + Stream + Compare + 'i,
Normal: Parser,
Escapable: Parser,
Error: ParserError,
@@ -1612,13 +1612,13 @@ where
/// Deprecated, replaced with [`take_escaped`]
#[deprecated(since = "0.6.4", note = "Replaced with `take_escaped`")]
#[inline(always)]
-pub fn escaped<'i, Input: 'i, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
+pub fn escaped<'i, Input, Error, Normal, Escapable, NormalOutput, EscapableOutput>(
normal: Normal,
control_char: char,
escapable: Escapable,
) -> impl Parser::Slice, Error>
where
- Input: StreamIsPartial + Stream + Compare,
+ Input: StreamIsPartial + Stream + Compare + 'i,
Normal: Parser,
Escapable: Parser,
Error: ParserError,
@@ -1668,7 +1668,7 @@ where
Err(ErrMode::Incomplete(Needed::Unknown))
}
-fn complete_escaped_internal<'a, I: 'a, Error, F, G, O1, O2>(
+fn complete_escaped_internal<'a, I, Error, F, G, O1, O2>(
input: &mut I,
normal: &mut F,
control_char: char,
@@ -1678,6 +1678,7 @@ where
I: StreamIsPartial,
I: Stream,
I: Compare,
+ I: 'a,
F: Parser,
G: Parser,
Error: ParserError,