2022-11-02 19:45:08 -05:00
|
|
|
error: method `foo` should be async because the method from the trait is async
|
|
|
|
--> $DIR/fn-not-async-err.rs:11:5
|
2022-10-03 20:27:11 -05:00
|
|
|
|
|
|
|
|
LL | async fn foo(&self) -> i32;
|
2022-11-02 19:45:08 -05:00
|
|
|
| --------------------------- required because the trait method is async
|
|
|
|
...
|
|
|
|
LL | fn foo(&self) -> i32 {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2022-10-03 20:27:11 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|