rust/tests/target/async_block.rs
2019-03-20 18:18:02 +01:00

26 lines
353 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
spawn(a, async move {
action();
Ok(())
});
spawn(a, async move || {
action();
Ok(())
});
}