]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/suggest-missing-await-closure.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await-closure.stderr
1 error[E0308]: mismatched types
2 --> $DIR/suggest-missing-await-closure.rs:16:18
3 |
4 LL | take_u32(x)
5 | -------- ^ expected `u32`, found opaque type
6 | |
7 | arguments to this function are incorrect
8 |
9 note: while checking the return type of the `async fn`
10 --> $DIR/suggest-missing-await-closure.rs:8:24
11 |
12 LL | async fn make_u32() -> u32 {
13 | ^^^ checked the `Output` of this `async fn`, found opaque type
14 = note: expected type `u32`
15 found opaque type `impl Future<Output = u32>`
16 note: function defined here
17 --> $DIR/suggest-missing-await-closure.rs:6:4
18 |
19 LL | fn take_u32(_x: u32) {}
20 | ^^^^^^^^ -------
21 help: consider `await`ing on the `Future`
22 |
23 LL | take_u32(x.await)
24 | ++++++
25
26 error: aborting due to previous error
27
28 For more information about this error, try `rustc --explain E0308`.