rust/src/test/run-pass/placement-new-arena.rs
2012-07-30 18:38:15 -07:00

10 lines
148 B
Rust

use std;
import std::arena::arena;
fn main() {
let p = &arena();
let x = new(*p) 4u;
io::print(fmt!{"%u", *x});
assert *x == 4u;
}