mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
13 lines
325 B
Text
13 lines
325 B
Text
error: unused `async` for function with no await statements
|
|
--> $DIR/unused_async.rs:3:1
|
|
|
|
|
LL | / async fn foo() -> i32 {
|
|
LL | | 4
|
|
LL | | }
|
|
| |_^
|
|
|
|
|
= note: `-D clippy::unused-async` implied by `-D warnings`
|
|
= help: consider removing the `async` from this function
|
|
|
|
error: aborting due to previous error
|
|
|