]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/suggest-missing-await-closure.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await-closure.stderr
CommitLineData
416331ca
XL
1error[E0308]: mismatched types
2 --> $DIR/suggest-missing-await-closure.rs:16:18
3 |
dfeec247 4LL | async fn make_u32() -> u32 {
6a06907d 5 | --- checked the `Output` of this `async fn`, found opaque type
dfeec247 6...
416331ca 7LL | 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
13help: consider `await`ing on the `Future`
14 |
15LL | take_u32(x.await)
16 | ^^^^^^
416331ca
XL
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0308`.