mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
16 lines
221 B
Rust
16 lines
221 B
Rust
// rustfmt-edition: Edition2018
|
|
|
|
fn main() {
|
|
let x = async { Ok(()) };
|
|
}
|
|
|
|
fn baz() {
|
|
// test
|
|
let x = async {
|
|
// async blocks are great
|
|
Ok(())
|
|
};
|
|
|
|
let y = async { Ok(()) }; // comment
|
|
}
|