2019-07-02 04:12:29 +02:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/suggest-missing-await-closure.rs:16:18
|
|
|
|
|
|
2019-11-15 18:53:17 -08:00
|
|
|
LL | async fn make_u32() -> u32 {
|
2019-12-15 22:48:45 -08:00
|
|
|
| --- the `Output` of this `async fn`'s found opaque type
|
2019-11-15 18:53:17 -08:00
|
|
|
...
|
2019-07-02 04:12:29 +02:00
|
|
|
LL | take_u32(x)
|
|
|
|
| ^
|
|
|
|
| |
|
2019-11-15 09:37:01 -08:00
|
|
|
| expected `u32`, found opaque type
|
2019-07-02 04:12:29 +02:00
|
|
|
| help: consider using `.await` here: `x.await`
|
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected type `u32`
|
2020-09-02 10:40:56 +03:00
|
|
|
found opaque type `impl Future`
|
2019-07-02 04:12:29 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|