1 // revisions: no_drop_tracking drop_tracking drop_tracking_mir
2 // [drop_tracking] compile-flags: -Zdrop-tracking
3 // [drop_tracking_mir] compile-flags: -Zdrop-tracking-mir
6 // Regression test for issue #62382.
8 use std::future::Future;
10 fn get_future() -> impl Future<Output = ()> {
11 //~^ ERROR `()` is not a future
17 //[no_drop_tracking,drop_tracking]~^ ERROR type inside `async fn` body must be known in this context
18 //[drop_tracking_mir]~^^ ERROR type annotations needed