1 use std::future::Future;
2 use std::task::{Context, Poll};
8 impl Future for MyFuture {
10 fn poll(self, _: &mut Context<'_>) -> Poll<()> {
11 //~^ ERROR method `poll` has an incompatible type for trait
18 fn bar(self) -> Option<()>;
22 fn foo(self: Box<Self>) {}
23 //~^ ERROR method `foo` has an incompatible type for trait
25 //~^ ERROR method `bar` has an incompatible type for trait