rust/tests/ui/unnecessary_async.rs
2021-05-14 16:45:18 -07:00

16 lines
165 B
Rust

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