]> git.lizzy.rs Git - rust.git/blob - tests/ui/async-await/dont-suggest-missing-await.stderr
Rollup merge of #107065 - flip1995:clippyup, r=Manishearth
[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: while checking the return type of the `async fn`
10   --> $DIR/dont-suggest-missing-await.rs:7: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/dont-suggest-missing-await.rs:5: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`.