summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/issue-3217.rs
blob: e68ca2c5907fcc55c1b36cabcb781d49d5ab48c3 (plain)
1
2
3
4
5
6
fn main() {
    let mut res = 0;
    's_39: { if res == 0i32 { println!("Hello, world!"); } }
    's_40: loop { println!("res = {}", res); res += 1; if res == 3i32 { break 's_40; } }
    let toto = || { if true { 42 } else { 24 } };
}