mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
15 lines
144 B
Rust
15 lines
144 B
Rust
#![warn(clippy::unused_async)]
|
|
|
|
async fn foo() -> i32 {
|
|
4
|
|
}
|
|
|
|
async fn bar() -> i32 {
|
|
foo().await
|
|
}
|
|
|
|
fn main() {
|
|
foo();
|
|
bar();
|
|
}
|