rust-clippy/tests/ui/unnecessary_async.stderr

14 lines
340 B
Text
Raw Normal View History

error: unnecessary `async` for function with no await statements
--> $DIR/unnecessary_async.rs:4:1
|
LL | / async fn foo() -> i32 {
LL | | 4
LL | | }
| |_^
|
= note: `-D clippy::unnecessary-async` implied by `-D warnings`
= help: consider removing the `async` from this function
error: aborting due to previous error