mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 23:24:24 +00:00
14 lines
144 B
Rust
14 lines
144 B
Rust
#![warn(clippy::unused_async)]
|
|
|
|
async fn foo() -> i32 {
|
|
4
|
|
}
|
|
|
|
async fn bar() -> i32 {
|
|
foo().await
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
bar();
|
|
}
|