summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-3227/one.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-3227/one.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-3227/one.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-3227/one.rs b/src/tools/rustfmt/tests/target/issue-3227/one.rs
new file mode 100644
index 000000000..fcc833100
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-3227/one.rs
@@ -0,0 +1,13 @@
+// rustfmt-version: One
+
+fn main() {
+ thread::spawn(|| {
+ while true {
+ println!("iteration");
+ }
+ });
+
+ thread::spawn(|| loop {
+ println!("iteration");
+ });
+}