1 error[E0706]: functions in traits cannot be declared `async`
2 --> $DIR/async-trait-fn.rs:3:5
7 | `async` because of this
9 = note: `async` trait functions are not currently supported
10 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
11 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
12 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
14 error[E0706]: functions in traits cannot be declared `async`
15 --> $DIR/async-trait-fn.rs:4:5
17 LL | async fn bar(&self) {}
20 | `async` because of this
22 = note: `async` trait functions are not currently supported
23 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
24 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
25 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
27 error[E0706]: functions in traits cannot be declared `async`
28 --> $DIR/async-trait-fn.rs:5:5
33 | `async` because of this
35 = note: `async` trait functions are not currently supported
36 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
37 = note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
38 = help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
40 error: aborting due to 3 previous errors
42 For more information about this error, try `rustc --explain E0706`.