]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/match-flattening.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / match-flattening.rs
1 fn main() {
2     match option {
3         None => if condition {
4             true
5         } else {
6             false
7         },
8     }
9 }
10
11 fn main() {
12     match option {
13         None => {
14             if condition {
15                 true
16             } else {
17                 false
18             }
19         }
20     }
21 }