about summary refs log tree commit diff
path: root/src/test/compile-fail/while-loop-constraints.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/while-loop-constraints.rs')
-rw-r--r--src/test/compile-fail/while-loop-constraints.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/while-loop-constraints.rs b/src/test/compile-fail/while-loop-constraints.rs
index 58757c8bfdd..38c1d471593 100644
--- a/src/test/compile-fail/while-loop-constraints.rs
+++ b/src/test/compile-fail/while-loop-constraints.rs
@@ -3,11 +3,11 @@ fn main() {
 
     let y: int = 42;
     let x: int;
-    while true {
+    loop {
         log(debug, y);
-        while true {
-            while true {
-                while true { x <- y; }
+        loop {
+            loop {
+                loop { x <- y; }
             }
         }
     }