1
Fork 0
rust/src/test/ui/async-await/suggest-missing-await-closure.stderr

19 lines
596 B
Text
Raw Normal View History

error[E0308]: mismatched types
--> $DIR/suggest-missing-await-closure.rs:16:18
|
LL | async fn make_u32() -> u32 {
2019-12-15 22:48:45 -08:00
| --- 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`
|
= note: expected type `u32`
found opaque type `impl Future`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.