]> git.proxmox.com Git - rustc.git/blame - src/test/ui/resolve/issue-70736-async-fn-no-body-def-collector.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / src / test / ui / resolve / issue-70736-async-fn-no-body-def-collector.stderr
CommitLineData
ba9703b0
XL
1error: free function without a body
2 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:3:1
3 |
4LL | async fn free();
5 | ^^^^^^^^^^^^^^^-
6 | |
7 | help: provide a definition for the function: `{ <body> }`
8
9error: associated function in `impl` without body
10 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:7:5
11 |
12LL | async fn inherent();
13 | ^^^^^^^^^^^^^^^^^^^-
14 | |
15 | help: provide a definition for the function: `{ <body> }`
16
17error[E0706]: functions in traits cannot be declared `async`
18 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:5
19 |
20LL | async fn associated();
21 | -----^^^^^^^^^^^^^^^^^
22 | |
23 | `async` because of this
24 |
25 = note: `async` trait functions are not currently supported
26 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
27
28error: associated function in `impl` without body
29 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
30 |
31LL | async fn associated();
32 | ^^^^^^^^^^^^^^^^^^^^^-
33 | |
34 | help: provide a definition for the function: `{ <body> }`
35
36error[E0706]: functions in traits cannot be declared `async`
37 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
38 |
39LL | async fn associated();
40 | -----^^^^^^^^^^^^^^^^^
41 | |
42 | `async` because of this
43 |
44 = note: `async` trait functions are not currently supported
45 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
46
47error[E0053]: method `associated` has an incompatible type for trait
48 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:26
49 |
50LL | async fn associated();
51 | - type in trait
52...
53LL | async fn associated();
54 | ^
55 | |
6a06907d 56 | checked the `Output` of this `async fn`, found opaque type
ba9703b0
XL
57 | expected `()`, found opaque type
58 |
6a06907d 59 = note: while checking the return type of the `async fn`
ba9703b0 60 = note: expected fn pointer `fn()`
1b1a35ee 61 found fn pointer `fn() -> impl Future`
ba9703b0
XL
62
63error: aborting due to 6 previous errors
64
65Some errors have detailed explanations: E0053, E0706.
66For more information about an error, try `rustc --explain E0053`.