]> git.proxmox.com Git - rustc.git/blob - tests/ui/async-await/in-trait/return-type-suggestion.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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() {}