about summary refs log tree commit diff
path: root/tests/ui/impl-trait/non-defining-uses/ice-issue-146191.rs
blob: 84f139da4e32a31c4a0031290342ea512a431767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//@ 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() {}