]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | error[E0308]: mismatched types |
2 | --> $DIR/suggest-missing-await-closure.rs:16:18 | |
3 | | | |
dfeec247 | 4 | LL | async fn make_u32() -> u32 { |
6a06907d | 5 | | --- checked the `Output` of this `async fn`, found opaque type |
dfeec247 | 6 | ... |
416331ca | 7 | LL | take_u32(x) |
29967ef6 | 8 | | ^ expected `u32`, found opaque type |
416331ca | 9 | | |
6a06907d | 10 | = note: while checking the return type of the `async fn` |
60c5eb7d | 11 | = note: expected type `u32` |
1b1a35ee | 12 | found opaque type `impl Future` |
29967ef6 XL |
13 | help: consider `await`ing on the `Future` |
14 | | | |
15 | LL | take_u32(x.await) | |
16 | | ^^^^^^ | |
416331ca XL |
17 | |
18 | error: aborting due to previous error | |
19 | ||
20 | For more information about this error, try `rustc --explain E0308`. |