]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/in-trait/return-type-suggestion.rs
Rollup merge of #105482 - wesleywiser:fix_debuginfo_ub, r=tmiasko
[rust.git] / src / test / ui / async-await / in-trait / return-type-suggestion.rs
1 // edition: 2021
2
3 #![feature(async_fn_in_trait)]
4 //~^ WARN the feature `async_fn_in_trait` is incomplete and may not be safe to use and/or cause compiler crashes
5
6 trait A {
7     async fn e() {
8         Ok(())
9         //~^ ERROR mismatched types
10         //~| HELP consider using a semicolon here
11     }
12 }
13
14 fn main() {}