rust-clippy/tests/ui/unused_async.stderr

14 lines
325 B
Text
Raw Normal View History

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