blob: 1c7d8e5e80ee9e4fc2c458dd72399f9ed76edaa4 [file] [log] [blame]
#![feature(pin, arbitrary_self_types, futures_api)]
use futures::future::{self, FutureExt};
use futures_test::task::panic_context;
#[test]
fn fuse() {
let mut future = future::ready::<i32>(2).fuse();
let cx = &mut panic_context();
assert!(future.poll_unpin(cx).is_ready());
assert!(future.poll_unpin(cx).is_pending());
}