about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-11-15 14:39:09 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-11-15 16:59:07 -0800
commit6b65aed3501fdefdae7653f202cd65338ada3c7f (patch)
tree4da3d8326e612a5459c2b5f469f78a0611847f11
parentd58e0e30edf540c7c6212d0ab7c617c272b27f8e (diff)
downloadrust-6b65aed3501fdefdae7653f202cd65338ada3c7f.tar.gz
rust-6b65aed3501fdefdae7653f202cd65338ada3c7f.zip
Remove test that tested behavior of unchecked blocks
We don't have unchecked blocks anymore.
-rw-r--r--src/test/compile-fail/borrowck-unchecked-with-borrow.rs34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/test/compile-fail/borrowck-unchecked-with-borrow.rs b/src/test/compile-fail/borrowck-unchecked-with-borrow.rs
deleted file mode 100644
index 0c5bcdd6ac1..00000000000
--- a/src/test/compile-fail/borrowck-unchecked-with-borrow.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-// xfail-test
-// xfail-fast
-#[legacy_modes];
-
-fn impure(_i: int) {}
-
-// check that unchecked alone does not override borrowck:
-fn foo(v: &const Option<int>) {
-    match *v {
-      Some(ref i) => {
-        //~^ ERROR illegal borrow unless pure
-        unsafe {
-            impure(*i); //~ NOTE impure due to access to impure function
-        }
-      }
-      None => {
-      }
-    }
-}
-
-fn bar(v: &const Option<int>) {
-    match *v {
-      Some(ref i) => {
-        unsafe {
-            impure(*i);
-        }
-      }
-      None => {
-      }
-    }
-}
-
-fn main() {
-}