about summary refs log tree commit diff
diff options
context:
space:
mode:
-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() {
-}