2023-06-23 22:00:08 -05:00
|
|
|
error: method `foo` should be async because the method from the trait is async
|
2023-10-24 10:27:02 -05:00
|
|
|
--> $DIR/async-example-desugared-manual.rs:19:5
|
2023-06-23 22:00:08 -05:00
|
|
|
|
|
|
|
|
LL | async fn foo(&self) -> i32;
|
|
|
|
| --------------------------- required because the trait method is async
|
|
|
|
...
|
|
|
|
LL | fn foo(&self) -> MyFuture {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-06-23 22:00:08 -05:00
|
|
|
|