1#![cfg(feature = "compat")]
2#![cfg(not(miri))] // Miri does not support epoll
3
4use futures::compat::Future01CompatExt;
5use futures::prelude::*;
6use std::time::Instant;
7use tokio::runtime::Runtime;
8use tokio::timer::Delay;
9
10#[test]
11fn can_use_01_futures_in_a_03_future_running_on_a_01_executor() {
12 let f = async { Delay::new(Instant::now()).compat().await };
13
14 let mut runtime = Runtime::new().unwrap();
15 runtime.block_on(f.boxed().compat()).unwrap();
16}
17