1 use std::alloc::{alloc, dealloc, realloc, Layout};
3 // error-pattern: dereferenced after this allocation got freed
7 let x = alloc(Layout::from_size_align_unchecked(1, 1));
8 dealloc(x, Layout::from_size_align_unchecked(1, 1));
9 dealloc(x, Layout::from_size_align_unchecked(1, 1));