fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
731 B26 linesraw
1error[E0308]: mismatched types
2  --> $DIR/dont-suggest-missing-await.rs:14: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/dont-suggest-missing-await.rs:14:18
11   |
12LL |         take_u32(x)
13   |                  ^
14note: function defined here
15  --> $DIR/dont-suggest-missing-await.rs:5: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`.