]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Don't lint `if_same_then_else` with `if let` conditions
[rust.git] / tests / ui / unused_async.rs
1 #![warn(clippy::unused_async)]
2
3 async fn foo() -> i32 {
4     4
5 }
6
7 async fn bar() -> i32 {
8     foo().await
9 }
10
11 fn main() {
12     foo();
13     bar();
14 }