summaryrefslogtreecommitdiffstats
path: root/src/test/ui/for-loop-while/long-while.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for-loop-while/long-while.rs')
-rw-r--r--src/test/ui/for-loop-while/long-while.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/for-loop-while/long-while.rs b/src/test/ui/for-loop-while/long-while.rs
new file mode 100644
index 000000000..529cca7b7
--- /dev/null
+++ b/src/test/ui/for-loop-while/long-while.rs
@@ -0,0 +1,12 @@
+// run-pass
+// pretty-expanded FIXME #23616
+
+#![allow(unused_variables)]
+
+pub fn main() {
+ let mut i: isize = 0;
+ while i < 1000000 {
+ i += 1;
+ let x = 3;
+ }
+}