box.rs 181 B

1234567891011
  1. extern crate ralloc;
  2. fn main() {
  3. let a = Box::new(1);
  4. let b = Box::new(2);
  5. let c = Box::new(3);
  6. assert_eq!(*a, 1);
  7. assert_eq!(*b, 2);
  8. assert_eq!(*c, 3);
  9. }