]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/dont-suggest-missing-await.stderr
Rollup merge of #105641 - Amanieu:btree_cursor, r=m-ou-se
[rust.git] / tests / ui / async-await / dont-suggest-missing-await.stderr
1 error[E0308]: mismatched types
2   --> $DIR/dont-suggest-missing-await.rs:14:18
3    |
4 LL |         take_u32(x)
5    |         -------- ^ expected `u32`, found opaque type
6    |         |
7    |         arguments to this function are incorrect
8    |
9    = note:     expected type `u32`
10            found opaque type `impl Future<Output = u32>`
11 note: function defined here
12   --> $DIR/dont-suggest-missing-await.rs:5:4
13    |
14 LL | fn take_u32(x: u32) {}
15    |    ^^^^^^^^ ------
16 help: consider `await`ing on the `Future`
17    |
18 LL |         take_u32(x.await)
19    |                   ++++++
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0308`.