]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Auto merge of #7133 - arya-k:master, r=llogiq
[rust.git] / tests / ui / unused_async.rs
1 // edition:2018
2 #![warn(clippy::unused_async)]
3
4 async fn foo() -> i32 {
5     4
6 }
7
8 async fn bar() -> i32 {
9     foo().await
10 }
11
12 fn main() {
13     foo();
14     bar();
15 }