mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 20:53:37 +00:00
16 lines
214 B
Rust
16 lines
214 B
Rust
// rustfmt-edition: 2018
|
|
|
|
fn main() {
|
|
let x = async { Ok(()) };
|
|
}
|
|
|
|
fn baz() {
|
|
// test
|
|
let x = async {
|
|
// async blocks are great
|
|
Ok(())
|
|
};
|
|
|
|
let y = async { Ok(()) }; // comment
|
|
}
|