3 // Regression test for issue #83190, triggering an ICE in borrowck.
12 pub trait Parser<Input>: Sized {
15 fn map(self) -> Map<Self> {
21 impl<I, P: Parser<I, Output = ()>> Parser<I> for Map<P> {
23 type PartialState = P::PartialState;
26 struct TakeWhile1<Input>(Input);
27 impl<I: StreamOnce> Parser<I> for TakeWhile1<I> {
28 type Output = I::Range;
29 type PartialState = ();
31 impl<I> TakeWhile1<I> {
37 impl<I, A: Parser<I>> Parser<I> for (A,) {
39 type PartialState = Map<A::Output>;
42 pub fn metric_stream_parser<'a, I>() -> impl Parser<I, Output = (), PartialState = impl Any + 'a>
44 I: StreamOnce<Range = &'a [()]>,
46 (TakeWhile1::new(),).map()