2021-05-20 05:30:31 -05:00
|
|
|
error: unused `async` for function with no await statements
|
2022-06-30 03:50:09 -05:00
|
|
|
--> $DIR/unused_async.rs:6:1
|
2021-05-20 05:30:31 -05:00
|
|
|
|
|
|
|
|
LL | / async fn foo() -> i32 {
|
|
|
|
LL | | 4
|
|
|
|
LL | | }
|
|
|
|
| |_^
|
|
|
|
|
|
|
|
|
= help: consider removing the `async` from this function
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::unused-async` implied by `-D warnings`
|
2021-05-20 05:30:31 -05:00
|
|
|
|
2022-06-30 03:50:09 -05:00
|
|
|
error: unused `async` for function with no await statements
|
|
|
|
--> $DIR/unused_async.rs:17:5
|
|
|
|
|
|
|
|
|
LL | / async fn unused(&self) -> i32 {
|
|
|
|
LL | | 1
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= help: consider removing the `async` from this function
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2021-05-20 05:30:31 -05:00
|
|
|
|