fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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: associated function in `impl` without body 18 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5 19 | 20LL | async fn associated(); 21 | ^^^^^^^^^^^^^^^^^^^^^- 22 | | 23 | help: provide a definition for the function: `{ <body> }` 24 25error[E0706]: functions in traits cannot be declared `async` 26 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:11:5 27 | 28LL | async fn associated(); 29 | -----^^^^^^^^^^^^^^^^^ 30 | | 31 | `async` because of this 32 | 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 37 38error[E0706]: functions in traits cannot be declared `async` 39 --> $DIR/issue-70736-async-fn-no-body-def-collector.rs:15:5 40 | 41LL | async fn associated(); 42 | -----^^^^^^^^^^^^^^^^^ 43 | | 44 | `async` because of this 45 | 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 50 51error: aborting due to 5 previous errors 52 53For more information about this error, try `rustc --explain E0706`.