rust/tests/ui/unused_async.rs

16 lines
160 B
Rust
Raw Normal View History

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