]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/unused_async.rs
Rollup merge of #84221 - ABouttefeux:generic-arg-elision, r=estebank
[rust.git] / src / tools / clippy / 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 }