2019-11-18 14:08:03 -06:00
|
|
|
error[E0706]: trait fns cannot be declared `async`
|
|
|
|
--> $DIR/async-trait-fn.rs:3:5
|
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
2020-01-29 22:31:04 -06:00
|
|
|
| -----^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| `async` because of this
|
2019-11-18 14:08:03 -06:00
|
|
|
|
|
|
|
|
= note: `async` trait functions are not currently supported
|
|
|
|
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
|
|
|
|
|
|
|
error[E0706]: trait fns cannot be declared `async`
|
|
|
|
--> $DIR/async-trait-fn.rs:4:5
|
|
|
|
|
|
|
|
|
LL | async fn bar(&self) {}
|
2020-01-29 22:31:04 -06:00
|
|
|
| -----^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| `async` because of this
|
2019-11-18 14:08:03 -06:00
|
|
|
|
|
|
|
|
= note: `async` trait functions are not currently supported
|
|
|
|
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2019-11-18 14:34:22 -06:00
|
|
|
For more information about this error, try `rustc --explain E0706`.
|