about summary refs log tree commit diff
path: root/tests/ui/async-await/in-trait/fn-not-async-err.stderr
blob: d8a5ff8b1684a72f63b2c7cd53e0ff48027c0d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 {
   |     ^^^^^^^^^^^^^^^^^^^^
   |
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;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 1 previous error