rust/tests/ui/async-await/in-trait/fn-not-async-err.stderr
2024-02-05 21:08:47 +00:00

15 lines
405 B
Plaintext

error: method should be `async` or return a future, but it is synchronous
--> $DIR/fn-not-async-err.rs:10:5
|
LL | fn foo(&self) -> i32 {
| ^^^^^^^^^^^^^^^^^^^^
|
note: this method is `async` so it expects a future to be returned
--> $DIR/fn-not-async-err.rs:6:5
|
LL | async fn foo(&self) -> i32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error