]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/issue-96555.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-96555.stderr
1 error[E0277]: `()` is not a future
2 --> $DIR/issue-96555.rs:4:12
3 |
4 LL | m::f1().await;
5 | -------^^^^^^ `()` is not a future
6 | |
7 | this call returns `()`
8 |
9 = help: the trait `Future` is not implemented for `()`
10 = note: () must be a future or must implement `IntoFuture` to be awaited
11 = note: required for `()` to implement `IntoFuture`
12 help: remove the `.await`
13 |
14 LL - m::f1().await;
15 LL + m::f1();
16 |
17 help: alternatively, consider making `fn f1` asynchronous
18 |
19 LL | pub async fn f1() {}
20 | +++++
21
22 error[E0277]: `()` is not a future
23 --> $DIR/issue-96555.rs:5:12
24 |
25 LL | m::f2().await;
26 | -------^^^^^^ `()` is not a future
27 | |
28 | this call returns `()`
29 |
30 = help: the trait `Future` is not implemented for `()`
31 = note: () must be a future or must implement `IntoFuture` to be awaited
32 = note: required for `()` to implement `IntoFuture`
33 help: remove the `.await`
34 |
35 LL - m::f2().await;
36 LL + m::f2();
37 |
38 help: alternatively, consider making `fn f2` asynchronous
39 |
40 LL | pub(crate) async fn f2() {}
41 | +++++
42
43 error[E0277]: `()` is not a future
44 --> $DIR/issue-96555.rs:6:12
45 |
46 LL | m::f3().await;
47 | -------^^^^^^ `()` is not a future
48 | |
49 | this call returns `()`
50 |
51 = help: the trait `Future` is not implemented for `()`
52 = note: () must be a future or must implement `IntoFuture` to be awaited
53 = note: required for `()` to implement `IntoFuture`
54 help: remove the `.await`
55 |
56 LL - m::f3().await;
57 LL + m::f3();
58 |
59 help: alternatively, consider making `fn f3` asynchronous
60 |
61 LL | pub async
62 | +++++
63
64 error: aborting due to 3 previous errors
65
66 For more information about this error, try `rustc --explain E0277`.