fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
325 B19 linesraw
1// edition:2018
2// run-rustfix
3
4fn take_u32(_x: u32) {}
5
6async fn make_u32() -> u32 {
7    22
8}
9
10#[allow(unused)]
11async fn suggest_await_in_async_fn() {
12    let x = make_u32();
13    take_u32(x.await)
14    //~^ ERROR mismatched types [E0308]
15    //~| HELP consider using `.await` here
16    //~| SUGGESTION x.await
17}
18
19fn main() {}