rust/tests/ui/unused_async.rs
2021-10-30 14:50:53 +02:00

15 lines
144 B
Rust

#![warn(clippy::unused_async)]
async fn foo() -> i32 {
4
}
async fn bar() -> i32 {
foo().await
}
fn main() {
foo();
bar();
}