2 use std::future::Future;
4 use std::task::{Context, Poll};
6 fn spawn<T: Send>(_: T) {}
9 impl Future for AFuture{
12 fn poll(mut self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<()> {
18 spawn(async { //~ ERROR future cannot be sent between threads safely
19 let _a = std::ptr::null_mut::<()>(); // `*mut ()` is not `Send`