about summary refs log tree commit diff
path: root/src/test/compile-fail/while-loop-constraints.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-27 14:19:39 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-27 15:54:33 +0200
commitdf7f21db093b0f206048b18e977161f91b7c28f1 (patch)
tree36c56d12572266bd0b8d2b3379e52d04bf0e9152 /src/test/compile-fail/while-loop-constraints.rs
parent0e3ee39c41462652f41993a5610265abea6daa96 (diff)
downloadrust-df7f21db093b0f206048b18e977161f91b7c28f1.tar.gz
rust-df7f21db093b0f206048b18e977161f91b7c28f1.zip
Reformat for new syntax
Diffstat (limited to 'src/test/compile-fail/while-loop-constraints.rs')
-rw-r--r--src/test/compile-fail/while-loop-constraints.rs15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/test/compile-fail/while-loop-constraints.rs b/src/test/compile-fail/while-loop-constraints.rs
index 4c97aae7042..9cada6f430c 100644
--- a/src/test/compile-fail/while-loop-constraints.rs
+++ b/src/test/compile-fail/while-loop-constraints.rs
@@ -2,16 +2,7 @@
 // error-pattern: Unsatisfied precondition constraint (for example, init(y
 fn main() {
 
-  let int y = 42;
-  let int x;
-  while (true) {
-    log y;
-    while (true) {
-      while (true) {
-    while (true) {
-      x <- y;
-    }
-      }
-    }
-  }
+    let y: int = 42;
+    let x: int;
+    while true { log y; while true { while true { while true { x <- y; } } } }
 }
\ No newline at end of file