blob: 84f139da4e32a31c4a0031290342ea512a431767 [file] [log] [blame]
//@ edition: 2024
//@ revisions: current next
//@[next] compile-flags: -Znext-solver
//@ ignore-compare-mode-next-solver (explicit revisions)
fn create_complex_future() -> impl Future<Output = impl ReturnsSend> {
//[current]~^ ERROR the trait bound `(): ReturnsSend` is not satisfied
async { create_complex_future().await }
//[current]~^ ERROR recursion in an async block requires
//[next]~^^ ERROR type annotations needed
}
trait ReturnsSend {}
fn main() {}