minimal.rs 270 B

123456789101112131415
  1. extern crate ralloc;
  2. #[global_allocator]
  3. static ALLOCATOR: ralloc::Allocator = ralloc::Allocator;
  4. #[test]
  5. fn minimal() {
  6. let a = Box::new(1);
  7. let b = Box::new(2);
  8. let c = Box::new(3);
  9. assert_eq!(*a, 1);
  10. assert_eq!(*b, 2);
  11. assert_eq!(*c, 3);
  12. }