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