]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/async-await/suggest-missing-await-closure.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await-closure.stderr
index ed2c4cbfccc9866fa710388ecbc00959f6820ea5..2151057aa7fc0a8c70f908e9ba3d4b8622db0f12 100644 (file)
@@ -5,13 +5,14 @@ LL | async fn make_u32() -> u32 {
    |                        --- the `Output` of this `async fn`'s found opaque type
 ...
 LL |         take_u32(x)
-   |                  ^
-   |                  |
-   |                  expected `u32`, found opaque type
-   |                  help: consider using `.await` here: `x.await`
+   |                  ^ expected `u32`, found opaque type
    |
    = note:     expected type `u32`
            found opaque type `impl Future`
+help: consider `await`ing on the `Future`
+   |
+LL |         take_u32(x.await)
+   |                   ^^^^^^
 
 error: aborting due to previous error