1 2 3 4 5 6 7 8 9
use static_alloc::leaked::Alloca; #[test] fn alloca_small() { let alloc = Alloca::<usize>::new(16).unwrap(); alloc.run(|slice| { assert_eq!(slice.len(), 16); }); }