fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
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 | | 56 | the `Output` of this `async fn`'s found opaque type 57 | expected `()`, found opaque type 58 | 59 = note: expected fn pointer `fn()` 60 found fn pointer `fn() -> impl std::future::Future` 61 62error: aborting due to 6 previous errors 63 64Some errors have detailed explanations: E0053, E0706. 65For more information about an error, try `rustc --explain E0053`.