blob: 340ca1f75ef9081c768f4e786e8eb1bd54952ff7 [file] [log] [blame]
use std::alloc::{Layout, alloc, dealloc};
fn main() {
unsafe {
let x = alloc(Layout::from_size_align_unchecked(1, 1));
dealloc(x, Layout::from_size_align_unchecked(1, 1));
dealloc(x, Layout::from_size_align_unchecked(1, 1)); //~ERROR: has been freed
}
}