about summary refs log tree commit diff
path: root/src/tools/rustfmt/tests/source/issue-3227/two.rs
blob: 50c0ad47dc1779f0d61c027f7b67411adcbdd284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// rustfmt-style_edition: 2024

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

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