rust/tests/ui/unused_async.rs

15 lines
144 B
Rust
Raw Normal View History

2021-05-15 00:07:30 +00:00
#![warn(clippy::unused_async)]
async fn foo() -> i32 {
4
}
async fn bar() -> i32 {
foo().await
}
fn main() {
foo();
bar();
}