rust/tests/source/async_block.rs

20 lines
245 B
Rust
Raw Normal View History

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