]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-3217.rs
Merge commit 'd822110d3b5625b9dc80ccc442e06fc3cc851d76' into clippyup
[rust.git] / src / tools / rustfmt / tests / target / issue-3217.rs
1 fn main() {
2     let mut res = 0;
3     's_39: {
4         if res == 0i32 {
5             println!("Hello, world!");
6         }
7     }
8     's_40: loop {
9         println!("res = {}", res);
10         res += 1;
11         if res == 3i32 {
12             break 's_40;
13         }
14     }
15     let toto = || {
16         if true {
17             42
18         } else {
19             24
20         }
21     };
22 }