]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/suggest-missing-await.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await.stderr
1 error[E0308]: mismatched types
2 --> $DIR/suggest-missing-await.rs:12:14
3 |
4 LL | async fn make_u32() -> u32 {
5 | --- checked the `Output` of this `async fn`, found opaque type
6 ...
7 LL | take_u32(x)
8 | ^ expected `u32`, found opaque type
9 |
10 = note: while checking the return type of the `async fn`
11 = note: expected type `u32`
12 found opaque type `impl Future`
13 help: consider `await`ing on the `Future`
14 |
15 LL | take_u32(x.await)
16 | ^^^^^^
17
18 error[E0308]: mismatched types
19 --> $DIR/suggest-missing-await.rs:22:5
20 |
21 LL | async fn dummy() {}
22 | - checked the `Output` of this `async fn`, found opaque type
23 ...
24 LL | dummy()
25 | ^^^^^^^ expected `()`, found opaque type
26 |
27 = note: while checking the return type of the `async fn`
28 = note: expected unit type `()`
29 found opaque type `impl Future`
30 help: consider `await`ing on the `Future`
31 |
32 LL | dummy().await
33 | ^^^^^^
34 help: consider using a semicolon here
35 |
36 LL | dummy();
37 | ^
38
39 error: aborting due to 2 previous errors
40
41 For more information about this error, try `rustc --explain E0308`.