rust/tests/source/issue-3227/two.rs
rchaser53 7d9a2ef96d version/2: Align loop and while formatting
The loop and while formatting was diverting as  `loop`
was not being moved to a new, indented block, as `while`
was.

This commit fixes this inconsistency but pins it to version 2
to avoid changing existing code.
2019-02-14 10:06:29 +09:00

14 lines
204 B
Rust

// rustfmt-version: Two
fn main() {
thread::spawn(|| {
while true {
println!("iteration");
}
});
thread::spawn(|| loop {
println!("iteration");
});
}