mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
16 lines
160 B
Rust
16 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();
|
|
}
|