2020-02-11 08:19:21 +01:00
|
|
|
error[E0706]: functions in traits cannot be declared `async`
|
2019-11-18 12:08:03 -08:00
|
|
|
--> $DIR/async-trait-fn.rs:3:5
|
|
|
|
|
|
|
|
|
LL | async fn foo() {}
|
2020-01-30 05:31:04 +01:00
|
|
|
| -----^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| `async` because of this
|
2019-11-18 12:08:03 -08:00
|
|
|
|
|
|
|
|
= note: `async` trait functions are not currently supported
|
|
|
|
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
|
|
|
|
2020-02-11 08:19:21 +01:00
|
|
|
error[E0706]: functions in traits cannot be declared `async`
|
2019-11-18 12:08:03 -08:00
|
|
|
--> $DIR/async-trait-fn.rs:4:5
|
|
|
|
|
|
|
|
|
LL | async fn bar(&self) {}
|
2020-01-30 05:31:04 +01:00
|
|
|
| -----^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| `async` because of this
|
2019-11-18 12:08:03 -08:00
|
|
|
|
|
|
|
|
= note: `async` trait functions are not currently supported
|
|
|
|
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
|
|
|
|
|
2021-04-15 21:41:40 +02:00
|
|
|
error[E0706]: functions in traits cannot be declared `async`
|
|
|
|
--> $DIR/async-trait-fn.rs:5:5
|
|
|
|
|
|
|
|
|
LL | async fn baz() {
|
|
|
|
| ^----
|
|
|
|
| |
|
|
|
|
| _____`async` because of this
|
|
|
|
| |
|
|
|
|
LL | | // Nested item must not ICE.
|
|
|
|
LL | | fn a() {}
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= 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 3 previous errors
|
2019-11-18 12:08:03 -08:00
|
|
|
|
2019-11-18 12:34:22 -08:00
|
|
|
For more information about this error, try `rustc --explain E0706`.
|