about summary refs log tree commit diff
path: root/src/test/ui/for-loop-while/while-loop-constraints-2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/for-loop-while/while-loop-constraints-2.rs')
-rw-r--r--src/test/ui/for-loop-while/while-loop-constraints-2.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/test/ui/for-loop-while/while-loop-constraints-2.rs b/src/test/ui/for-loop-while/while-loop-constraints-2.rs
deleted file mode 100644
index 3c5cdf06cd8..00000000000
--- a/src/test/ui/for-loop-while/while-loop-constraints-2.rs
+++ /dev/null
@@ -1,15 +0,0 @@
-// run-pass
-#![allow(unused_assignments)]
-#![allow(unused_variables)]
-
-pub fn main() {
-    let mut y: isize = 42;
-    let mut z: isize = 42;
-    let mut x: isize;
-    while z < 50 {
-        z += 1;
-        while false { x = y; y = z; }
-        println!("{}", y);
-    }
-    assert!((y == 42 && z == 50));
-}