about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/target/issue-3227/one.rs
blob: 2922bfdfef7691b14ebb72be0e7c7793ca4f2c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// rustfmt-style_edition: 2015

fn main() {
    thread::spawn(|| {
        while true {
            println!("iteration");
        }
    });

    thread::spawn(|| loop {
        println!("iteration");
    });
}