fn compat(self) -> Compat01As03<Self>
    where
        Self: Sized,
    {
        Compat01As03::new(self)
    }
Converts a futures 0.1
[`Stream<Item = T, Error = E>`](futures_01::stream::Stream)
into a futures 0.3
[`Stream<Item = Result<T, E>>`](futures_core::stream::Stream).

```
# if cfg!(miri) { return; } // https://github.com/rust-lang/futures-rs/issues/2514
# futures::executor::block_on(async {
use futures::stream::StreamExt;
use futures_util::compat::Stream01CompatExt;

let stream = futures_01::stream::once::<u32, ()>(Ok(1));
let mut stream = stream.compat();
assert_eq!(stream.next().await, Some(Ok(1)));
assert_eq!(stream.next().await, None);
# });
```
futures-util/src/compat/compat01as03.rs