2021-05-14 19:07:30 -05:00
|
|
|
error: unused `async` for function with no await statements
|
|
|
|
--> $DIR/unused_async.rs:4:1
|
2021-05-14 18:45:18 -05:00
|
|
|
|
|
|
|
|
LL | / async fn foo() -> i32 {
|
|
|
|
LL | | 4
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
2021-05-14 19:07:30 -05:00
|
|
|
= note: `-D clippy::unused-async` implied by `-D warnings`
|
2021-05-14 18:45:18 -05:00
|
|
|
= help: consider removing the `async` from this function
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|