]> git.lizzy.rs Git - rust.git/blob - src/test/ui/async-await/dont-suggest-missing-await.stderr
Rollup merge of #71627 - ldm0:autoderefarg, r=Dylan-DPC
[rust.git] / src / test / ui / async-await / dont-suggest-missing-await.stderr
1 error[E0308]: mismatched types
2   --> $DIR/dont-suggest-missing-await.rs:14:18
3    |
4 LL | async fn make_u32() -> u32 {
5    |                        --- the `Output` of this `async fn`'s found opaque type
6 ...
7 LL |         take_u32(x)
8    |                  ^ expected `u32`, found opaque type
9    |
10    = note:     expected type `u32`
11            found opaque type `impl std::future::Future`
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0308`.