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
12 error[E0706]: functions in traits cannot be declared `async`
13 --> $DIR/async-trait-fn.rs:4:5
15 LL | async fn bar(&self) {}
16 | -----^^^^^^^^^^^^^^^^^
18 | `async` because of this
20 = note: `async` trait functions are not currently supported
21 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0706`.