Remove duplicate test

上级 eb01c3fd
fn main() {
let x = Box::new(42);
{
let bad_box: Box<i32> = unsafe { std::ptr::read(&x) };
drop(bad_box);
}
drop(x); //~ ERROR dangling pointer was dereferenced
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册