rust/tests/source/async_block.rs

20 lines
238 B
Rust
Raw Normal View History

// rustfmt-edition: 2018
2018-07-29 17:45:31 +02:00
fn main() {
let x = async {
Ok(())
};
}
2018-07-30 02:20:11 +02:00
fn baz() {
// test
let x = async {
// async blocks are great
Ok(())
};
let y = async {
Ok(())
}; // comment
}