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