test: Remove unsafe from the region tests

This commit is contained in:
Patrick Walton 2012-03-14 16:18:33 -07:00
parent fd9c9ac912
commit b516913a5d
2 changed files with 10 additions and 14 deletions

View file

@ -3,14 +3,12 @@ enum int_wrapper {
}
fn main() {
unsafe {
let x = 3;
let y = int_wrapper_ctor(&x);
let z : ∫
alt y {
int_wrapper_ctor(zz) { z = zz; }
}
log(debug, *z);
let x = 3;
let y = int_wrapper_ctor(&x);
let z : ∫
alt y {
int_wrapper_ctor(zz) { z = zz; }
}
log(debug, *z);
}

View file

@ -1,10 +1,8 @@
fn main() {
unsafe{
let x: int = 3;
let y: &mutable int = &mutable x;
*y = 5;
log (debug, *y);
}
let x: int = 3;
let y: &mutable int = &mutable x;
*y = 5;
log (debug, *y);
}