1 error[E0308]: mismatched types
2 --> $DIR/issue-90027-async-fn-return-suggestion.rs:4:5
4 LL | async fn hello() {
5 | - help: try adding a return type: `-> i32`
7 | ^ expected `()`, found integer
9 error[E0308]: mismatched types
10 --> $DIR/issue-90027-async-fn-return-suggestion.rs:9:5
12 LL | async fn world() -> () {
13 | -- expected `()` because of return type
15 | ^ expected `()`, found integer
17 error[E0308]: mismatched types
18 --> $DIR/issue-90027-async-fn-return-suggestion.rs:14:5
21 | ^^^^^^^ expected `()`, found opaque type
23 = note: expected unit type `()`
24 found opaque type `impl Future<Output = ()>`
25 help: consider `await`ing on the `Future`
29 help: consider using a semicolon here
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0308`.