#![deny(unused_must_use)]
-#![feature(arbitrary_self_types, futures_api)]
+#![feature(arbitrary_self_types)]
use std::iter::Iterator;
use std::future::Future;
-use std::task::{Poll, Waker};
+use std::task::{Context, Poll};
use std::pin::Pin;
use std::unimplemented;
impl Future for MyFuture {
type Output = u32;
- fn poll(self: Pin<&mut Self>, waker: &Waker) -> Poll<u32> {
+ fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<u32> {
Poll::Pending
}
}