]>
git.proxmox.com Git - rustc.git/blob - tests/rustdoc/synthetic_auto/issue-72213-projection-lifetime.rs
1 // Regression test for issue #72213
2 // Tests that we don't ICE when we have projection predicates
3 // in our initial ParamEnv
5 pub struct Lines
<'a
, L
>
7 L
: Iterator
<Item
= &'
a ()>,
9 words
: std
::iter
::Peekable
<Words
<'a
, L
>>,
12 pub struct Words
<'a
, L
> {
13 _m
: std
::marker
::PhantomData
<&'a L
>,
16 impl<'a
, L
> Iterator
for Words
<'a
, L
>
18 L
: Iterator
<Item
= &'
a ()>,
22 fn next(&mut self) -> Option
<Self::Item
> {