]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_async.rs
Rollup merge of #96860 - semarie:openbsd-futex-time64, r=cuviper
[rust.git] / src / tools / clippy / 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 }