rust/tests/target/async_block.rs

16 lines
214 B
Rust
Raw Normal View History

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