31c5cec55b
cc #3071
10 lines
152 B
Rust
10 lines
152 B
Rust
use std;
|
|
import std::arena::arena;
|
|
|
|
fn main() {
|
|
let p = &arena();
|
|
let x = p.alloc(|| 4u);
|
|
io::print(fmt!{"%u", *x});
|
|
assert *x == 4u;
|
|
}
|