]> git.lizzy.rs Git - rust.git/blob - tests/ui/unused_async.rs
Suggest `copy_from_slice` for `manual_memcpy` when possible
[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 }