1 #![cfg(feature = "compat")]
2 #![cfg(not(miri))] // Miri does not support epoll
3 
4 use futures::compat::Future01CompatExt;
5 use futures::prelude::*;
6 use std::time::Instant;
7 use tokio::runtime::Runtime;
8 use tokio::timer::Delay;
9 
10 #[test]
can_use_01_futures_in_a_03_future_running_on_a_01_executor()11 fn 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