1 error: free function without a body
2 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:3:1
7 | help: provide a definition for the function: `{ <body> }`
9 error: associated function in `impl` without body
10 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:7:5
12 LL | async fn inherent();
13 | ^^^^^^^^^^^^^^^^^^^-
15 | help: provide a definition for the function: `{ <body> }`
17 error[E0706]: functions in traits cannot be declared `async`
18 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:5
20 LL | async fn associated();
21 | -----^^^^^^^^^^^^^^^^^
23 | `async` because of this
25 = note: `async` trait functions are not currently supported
26 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
28 error: associated function in `impl` without body
29 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
31 LL | async fn associated();
32 | ^^^^^^^^^^^^^^^^^^^^^-
34 | help: provide a definition for the function: `{ <body> }`
36 error[E0706]: functions in traits cannot be declared `async`
37 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
39 LL | async fn associated();
40 | -----^^^^^^^^^^^^^^^^^
42 | `async` because of this
44 = note: `async` trait functions are not currently supported
45 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
47 error[E0053]: method `associated` has an incompatible type for trait
48 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:26
50 LL | async fn associated();
53 | checked the `Output` of this `async fn`, found opaque type
54 | expected `()`, found opaque type
56 = note: while checking the return type of the `async fn`
58 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:26
60 LL | async fn associated();
62 = note: expected fn pointer `fn()`
63 found fn pointer `fn() -> impl Future<Output = ()>`
65 error: aborting due to 6 previous errors
67 Some errors have detailed explanations: E0053, E0706.
68 For more information about an error, try `rustc --explain E0053`.