]> git.lizzy.rs Git - rust.git/blob - tests/target/async_block.rs
Add a test for #3031 and update test
[rust.git] / tests / target / async_block.rs
1 // rustfmt-edition: 2018
2
3 fn main() {
4     let x = async { Ok(()) };
5 }
6
7 fn baz() {
8     // test
9     let x = async {
10         // async blocks are great
11         Ok(())
12     };
13
14     let y = async { Ok(()) }; // comment
15 }