From 6b65aed3501fdefdae7653f202cd65338ada3c7f Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 15 Nov 2012 14:39:09 -0800 Subject: [PATCH] Remove test that tested behavior of unchecked blocks We don't have unchecked blocks anymore. --- .../borrowck-unchecked-with-borrow.rs | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/test/compile-fail/borrowck-unchecked-with-borrow.rs 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 0c5bcdd6ac11..000000000000 --- 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) { - 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) { - match *v { - Some(ref i) => { - unsafe { - impure(*i); - } - } - None => { - } - } -} - -fn main() { -}