]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-447.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / issue-447.rs
1 // rustfmt-normalize_comments: true
2
3 fn main() {
4         if /* shouldn't be dropped
5         shouldn't be dropped */
6         
7         cond /* shouldn't be dropped
8         shouldn't be dropped */
9         
10         {
11         } /* shouldn't be dropped
12         shouldn't be dropped */
13         
14         else /* shouldn't be dropped
15         shouldn't be dropped */
16         
17         if /* shouldn't be dropped
18         shouldn't be dropped */
19         
20         cond /* shouldn't be dropped
21         shouldn't be dropped */
22         
23         {
24         } /* shouldn't be dropped
25         shouldn't be dropped */
26         
27         else /* shouldn't be dropped
28         shouldn't be dropped */
29         
30         {
31         }
32         
33         if /* shouldn't be dropped
34         shouldn't be dropped */
35         let Some(x) = y/* shouldn't be dropped
36         shouldn't be dropped */
37         {
38         }
39 }