]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-447.rs
Handle more possible comment position for if else
[rust.git] / tests / source / issue-447.rs
1 fn main() {
2         if /* shouldn't be dropped
3         shouldn't be dropped */
4         
5         cond /* shouldn't be dropped
6         shouldn't be dropped */
7         
8         {
9         } /* shouldn't be dropped
10         shouldn't be dropped */
11         
12         else /* shouldn't be dropped
13         shouldn't be dropped */
14         
15         if /* shouldn't be dropped
16         shouldn't be dropped */
17         
18         cond /* shouldn't be dropped
19         shouldn't be dropped */
20         
21         {
22         } /* shouldn't be dropped
23         shouldn't be dropped */
24         
25         else /* shouldn't be dropped
26         shouldn't be dropped */
27         
28         {
29         }
30         
31         if /* shouldn't be dropped
32         shouldn't be dropped */
33         let Some(x) = y/* shouldn't be dropped
34         shouldn't be dropped */
35         {
36         }
37 }