]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Merge remote-tracking branch 'upstream/beta' into backport_remerge
[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 }