2019-06-19 21:55:18 +01:00
|
|
|
error[E0308]: mismatched types
|
2019-08-02 03:48:43 +02:00
|
|
|
--> $DIR/suggest-missing-await.rs:13:14
|
2019-06-19 21:55:18 +01:00
|
|
|
|
|
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-06-19 21:55:18 +01:00
|
|
|
LL | take_u32(x)
|
|
|
|
| ^
|
|
|
|
| |
|
2019-11-15 09:37:01 -08:00
|
|
|
| expected `u32`, found opaque type
|
2019-06-19 21:55:18 +01:00
|
|
|
| help: consider using `.await` here: `x.await`
|
|
|
|
|
|
2019-11-13 14:16:56 -08:00
|
|
|
= note: expected type `u32`
|
|
|
|
found opaque type `impl std::future::Future`
|
2019-06-19 21:55:18 +01:00
|
|
|
|
2019-12-03 20:32:50 -05:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/suggest-missing-await.rs:23:5
|
|
|
|
|
|
2019-12-15 14:05:08 -08:00
|
|
|
LL | async fn dummy() {}
|
2019-12-15 22:48:45 -08:00
|
|
|
| - the `Output` of this `async fn`'s found opaque type
|
2019-12-15 14:05:08 -08:00
|
|
|
...
|
2019-12-03 20:32:50 -05:00
|
|
|
LL | dummy()
|
|
|
|
| ^^^^^^^ expected `()`, found opaque type
|
|
|
|
|
|
|
|
|
= note: expected unit type `()`
|
|
|
|
found opaque type `impl std::future::Future`
|
|
|
|
help: try adding a semicolon
|
|
|
|
|
|
|
|
|
LL | dummy();
|
|
|
|
| ^
|
|
|
|
help: consider using `.await` here
|
|
|
|
|
|
|
|
|
LL | dummy().await
|
|
|
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-06-19 21:55:18 +01:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|