fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/suggest-missing-await-closure.rs:16:18 3 | 4LL | take_u32(x) 5 | -------- ^ expected `u32`, found future 6 | | 7 | arguments to this function are incorrect 8 | 9note: calling an async function returns a future 10 --> $DIR/suggest-missing-await-closure.rs:16:18 11 | 12LL | take_u32(x) 13 | ^ 14note: function defined here 15 --> $DIR/suggest-missing-await-closure.rs:6:4 16 | 17LL | fn take_u32(_x: u32) {} 18 | ^^^^^^^^ ------- 19help: consider `await`ing on the `Future` 20 | 21LL | take_u32(x.await) 22 | ++++++ 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0308`.