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: associated function in `impl` without body
18 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
20 LL | async fn associated();
21 | ^^^^^^^^^^^^^^^^^^^^^-
23 | help: provide a definition for the function: `{ <body> }`
25 error[E0706]: functions in traits cannot be declared `async`
26 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:5
28 LL | async fn associated();
29 | -----^^^^^^^^^^^^^^^^^
31 | `async` because of this
33 = note: `async` trait functions are not currently supported
34 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
35 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
36 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
38 error[E0706]: functions in traits cannot be declared `async`
39 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5
41 LL | async fn associated();
42 | -----^^^^^^^^^^^^^^^^^
44 | `async` because of this
46 = note: `async` trait functions are not currently supported
47 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
48 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
49 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
51 error: aborting due to 5 previous errors
53 For more information about this error, try `rustc --explain E0706`.