]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Auto merge of #85538 - r00ster91:iterrepeat, r=Mark-Simulacrum
[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 }