]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/if_while_or_patterns.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / if_while_or_patterns.rs
1 #![feature(if_while_or_patterns)]
2
3 fn main() {
4     if let 0 | 1 = 0 {
5         println!("hello, world");
6     };
7
8     if let aaaaaaaaaaaaaaaaaaaaaaaaaa | bbbbbbbbbbbbbbbbbbbbbbbbbbb | cccccccccccccccc | d_100 = 0 {
9         println!("hello, world");
10     }
11
12     if let aaaaaaaaaaaaaaaaaaaaaaaaaa | bbbbbbbbbbbbbbbbbbbbbbb | ccccccccccccccccccccc | d_101 = 0
13     {
14         println!("hello, world");
15     }
16
17     if let aaaaaaaaaaaaaaaaaaaaaaaaaaaa | bbbbbbbbbbbbbbbbbbbbbbb | ccccccccccccccccccccc | d_103 =
18         0
19     {
20         println!("hello, world");
21     }
22
23     if let aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
24     | bbbbbbbbbbbbbbbbbbbbbbb
25     | ccccccccccccccccccccc
26     | d_105 = 0
27     {
28         println!("hello, world");
29     }
30
31     while let xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx
32     | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx | xxx = foo_bar(
33         bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb,
34         cccccccccccccccccccccccccccccccccccccccc,
35     ) {
36         println!("hello, world");
37     }
38 }