]>
Commit | Line | Data |
---|---|---|
dc9dc135 | 1 | error[E0308]: mismatched types |
e1599b0c | 2 | --> $DIR/suggest-missing-await.rs:13:14 |
dc9dc135 | 3 | | |
dfeec247 XL |
4 | LL | async fn make_u32() -> u32 { |
5 | | --- the `Output` of this `async fn`'s found opaque type | |
6 | ... | |
dc9dc135 XL |
7 | LL | take_u32(x) |
8 | | ^ | |
9 | | | | |
60c5eb7d | 10 | | expected `u32`, found opaque type |
dc9dc135 XL |
11 | | help: consider using `.await` here: `x.await` |
12 | | | |
60c5eb7d | 13 | = note: expected type `u32` |
1b1a35ee | 14 | found opaque type `impl Future` |
dc9dc135 | 15 | |
60c5eb7d XL |
16 | error[E0308]: mismatched types |
17 | --> $DIR/suggest-missing-await.rs:23:5 | |
18 | | | |
dfeec247 XL |
19 | LL | async fn dummy() {} |
20 | | - the `Output` of this `async fn`'s found opaque type | |
21 | ... | |
60c5eb7d XL |
22 | LL | dummy() |
23 | | ^^^^^^^ expected `()`, found opaque type | |
24 | | | |
25 | = note: expected unit type `()` | |
1b1a35ee | 26 | found opaque type `impl Future` |
60c5eb7d XL |
27 | help: try adding a semicolon |
28 | | | |
29 | LL | dummy(); | |
30 | | ^ | |
31 | help: consider using `.await` here | |
32 | | | |
33 | LL | dummy().await | |
34 | | | |
35 | ||
36 | error: aborting due to 2 previous errors | |
dc9dc135 XL |
37 | |
38 | For more information about this error, try `rustc --explain E0308`. |