1 #![feature(alloc, allocator_api)]
6 use alloc::allocator::*;
8 // error-pattern: tried to deallocate with a pointer not to the beginning of an existing object
13 let x = Heap.alloc(Layout::from_size_align_unchecked(1, 1)).unwrap();
14 Heap.dealloc(x, Layout::from_size_align_unchecked(1, 1));
15 Heap.dealloc(x, Layout::from_size_align_unchecked(1, 1));