]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/anonymous-lifetime.rs
1 // Regression test for https://github.com/rust-lang/rust/issues/84634
10 fn poll_next(mut self: Pin
<&mut Self>) -> Poll
<Option
<Self::Item
>>;
11 fn size_hint(&self) -> (usize, Option
<usize>);
14 // @has 'foo/trait.Stream.html'
15 // @has - '//*[@class="code-header in-band"]' 'impl<S: ?Sized + Stream + Unpin> Stream for &mut S'
16 impl<S
: ?Sized
+ Stream
+ Unpin
> Stream
for &mut S
{
20 mut self: Pin
<&mut Self>,
21 ) -> Poll
<Option
<Self::Item
>> {
22 S
::poll_next(Pin
::new(&mut **self), cx
)
25 fn size_hint(&self) -> (usize, Option
<usize>) {