]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/dont-suggest-missing-await.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / 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 | async fn make_u32() -> u32 {
5 | --- checked the `Output` of this `async fn`, found opaque type
6 ...
7 LL | take_u32(x)
8 | ^ expected `u32`, found opaque type
9 |
10 = note: while checking the return type of the `async fn`
11 = note: expected type `u32`
12 found opaque type `impl Future`
13 help: consider `await`ing on the `Future`
14 |
15 LL | take_u32(x.await)
16 | ^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0308`.