1 2 3 4 5 6 7 8 9 10 11
// run-pass #![feature(box_syntax)] use std::cell::Cell; pub fn main() { let x: Box<_> = box Cell::new(5); x.set(1000); println!("{}", x.get()); }