test: Remove unsafe from the region tests
This commit is contained in:
parent
fd9c9ac912
commit
b516913a5d
2 changed files with 10 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue