use dyn_future::DynFuture; use futures::future; use futures::executor::block_on; use std::pin::Pin; fn make() -> Pin>> { DynFuture::new(future::ready(Box::new(420))) } #[test] fn consume_dyn_future_box() { assert_eq!(block_on(make()), Box::new(420)) } #[test] fn drop_dyn_future_box() { drop(make()) }