rust/tests/ui/async-await/in-trait/fn-not-async-err.stderr

15 lines
404 B
Plaintext
Raw Normal View History

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