]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-types/issue-67684.rs
9 impl<T
> ParseError
for T
{
10 type StreamError
= ();
15 type Error
: ParseError
;
20 <Self as Parser
>::PartialState
: Default
,
23 fn parse_mode(_
: &Self, _
: Self::PartialState
) {
34 type PartialState
= ();
37 struct AndThen
<A
, B
>(core
::marker
::PhantomData
<(A
, B
)>);
39 impl<A
, B
> Parser
for AndThen
<A
, B
>
42 B
: Into
<<A
::Error
as ParseError
>::StreamError
>,
44 type PartialState
= ();
47 fn expr
<A
>() -> impl Parser
49 A
: Stream
<Error
= <A
as Stream
>::Item
>,
51 AndThen
::<A
, ()>(core
::marker
::PhantomData
)
54 fn parse_mode_impl
<A
>()
56 <A
as Stream
>::Error
: ParseError
,
57 A
: Stream
<Error
= <A
as Stream
>::Item
>,
59 Parser
::parse_mode(&expr
::<A
>(), Default
::default())