blob: 67c672e877c6920d7342a29ee7ade51f5fad4fb8 [file] [log] [blame]
#![feature(pin, arbitrary_self_types, futures_api)]
use futures::future::{self, FutureExt};
mod support;
#[test]
fn fuse() {
let mut future = future::ready::<i32>(2).fuse();
support::with_panic_waker_context(|cx| {
assert!(future.poll_unpin(cx).is_ready());
assert!(future.poll_unpin(cx).is_pending());
})
}