]> git.proxmox.com Git - rustc.git/blame - src/test/ui/async-await/suggest-missing-await.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / async-await / suggest-missing-await.stderr
CommitLineData
dc9dc135 1error[E0308]: mismatched types
e1599b0c 2 --> $DIR/suggest-missing-await.rs:13:14
dc9dc135 3 |
dfeec247
XL
4LL | async fn make_u32() -> u32 {
5 | --- the `Output` of this `async fn`'s found opaque type
6...
dc9dc135
XL
7LL | 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
16error[E0308]: mismatched types
17 --> $DIR/suggest-missing-await.rs:23:5
18 |
dfeec247
XL
19LL | async fn dummy() {}
20 | - the `Output` of this `async fn`'s found opaque type
21...
60c5eb7d
XL
22LL | dummy()
23 | ^^^^^^^ expected `()`, found opaque type
24 |
25 = note: expected unit type `()`
1b1a35ee 26 found opaque type `impl Future`
60c5eb7d
XL
27help: try adding a semicolon
28 |
29LL | dummy();
30 | ^
31help: consider using `.await` here
32 |
33LL | dummy().await
34 |
35
36error: aborting due to 2 previous errors
dc9dc135
XL
37
38For more information about this error, try `rustc --explain E0308`.