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

```
# if cfg!(miri) { return; } // https://github.com/rust-lang/futures-rs/issues/2514
# futures::executor::block_on(async {
# // TODO: These should be all using `futures::compat`, but that runs up against Cargo
# // feature issues
use futures_util::compat::Future01CompatExt;

let future = futures_01::future::ok::<u32, ()>(1);
assert_eq!(future.compat().await, Ok(1));
# });
```
futures-util/src/compat/compat01as03.rs