]> git.lizzy.rs Git - rust.git/blob - tests/target/async_closure.rs
fix rewrite_string when a line feed is present in a sequence of whitespaces, resultin...
[rust.git] / tests / target / async_closure.rs
1 // rustfmt-edition: Edition2018
2
3 fn main() {
4     let async_closure = async {
5         let x = 3;
6         x
7     };
8
9     let f = async /* comment */ {
10         let x = 3;
11         x
12     };
13
14     let g = async /* comment */ move {
15         let x = 3;
16         x
17     };
18 }