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