// edition:2018 type AsyncFnPtr = Box std::pin::Pin>>>; async fn test() {} #[allow(unused_must_use)] fn main() { Box::new(test) as AsyncFnPtr; //~^ ERROR expected `test` to be a fn item that returns `Pin>>`, but it returns `impl Future }