mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-17 02:08:28 +00:00
15 lines
160 B
Rust
15 lines
160 B
Rust
// edition:2018
|
|
#![warn(clippy::unused_async)]
|
|
|
|
async fn foo() -> i32 {
|
|
4
|
|
}
|
|
|
|
async fn bar() -> i32 {
|
|
foo().await
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
bar();
|
|
}
|