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

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

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