mirror of https://github.com/rust-lang/rust
22 lines
397 B
Rust
22 lines
397 B
Rust
//@ edition:2018
|
|
|
|
async fn hello() { //~ HELP try adding a return type
|
|
0
|
|
//~^ ERROR [E0308]
|
|
}
|
|
|
|
async fn world() -> () {
|
|
0
|
|
//~^ ERROR [E0308]
|
|
}
|
|
|
|
async fn suggest_await_in_async_fn_return() {
|
|
hello()
|
|
//~^ ERROR mismatched types [E0308]
|
|
//~| HELP consider `await`ing on the `Future`
|
|
//~| HELP consider using a semicolon here
|
|
//~| SUGGESTION .await
|
|
}
|
|
|
|
fn main() {}
|