summaryrefslogtreecommitdiffstats
path: root/tests/ui/async-await/in-trait/return-type-suggestion.rs
blob: 3de66306d9ab89f455a85792385d73212a0ba8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// edition: 2021
// [next] compile-flags: -Zlower-impl-trait-in-trait-to-assoc-ty
// revisions: current next

#![feature(async_fn_in_trait)]
//~^ WARN the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes

trait A {
    async fn e() {
        Ok(())
        //~^ ERROR mismatched types
        //~| HELP consider using a semicolon here
    }
}

fn main() {}