3 fn take_u32(_x: u32) {}
5 async fn make_u32() -> u32 {
10 async fn suggest_await_in_async_fn() {
13 //~^ ERROR mismatched types [E0308]
14 //~| HELP consider `await`ing on the `Future`
15 //~| SUGGESTION .await
21 async fn suggest_await_in_async_fn_return() {
23 //~^ ERROR mismatched types [E0308]
24 //~| HELP consider using a semicolon here
25 //~| HELP consider `await`ing on the `Future`
26 //~| SUGGESTION .await
30 async fn suggest_await_on_if() {
33 //~^ HELP consider `await`ing on the `Future`
36 //~^ ERROR `if` and `else` have incompatible types [E0308]
41 async fn suggest_await_on_previous_match_arms() {
42 let _x = match 0usize {
43 0 => dummy(), //~ HELP consider `await`ing on the `Future`
46 //~^ `match` arms have incompatible types [E0308]
51 async fn suggest_await_on_match_expr() {
52 let _x = match dummy() { //~ HELP consider `await`ing on the `Future`
53 () => {} //~ ERROR mismatched types [E0308]
57 async fn dummy_result() -> Result<(), ()> {
62 async fn suggest_await_in_generic_pattern() {
63 match dummy_result() {
64 //~^ HELP consider `await`ing on the `Future`
65 //~| HELP consider `await`ing on the `Future`
66 //~| SUGGESTION .await
68 //~^ ERROR mismatched types [E0308]
70 //~^ ERROR mismatched types [E0308]