fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0706]: trait fns cannot be declared `async` 2 --> $DIR/async-trait-fn.rs:3:5 3 | 4LL | async fn foo() {} 5 | ^^^^^^^^^^^^^^^^^ 6 | 7 = note: `async` trait functions are not currently supported 8 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait 9 10error[E0706]: trait fns cannot be declared `async` 11 --> $DIR/async-trait-fn.rs:4:5 12 | 13LL | async fn bar(&self) {} 14 | ^^^^^^^^^^^^^^^^^^^^^^ 15 | 16 = note: `async` trait functions are not currently supported 17 = note: consider using the `async-trait` crate: https://crates.io/crates/async-trait 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0706`.