]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Auto merge of #8374 - Alexendoo:bless-revisions, r=camsteffen
[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 }