#![allow(unused_variables)] fn main() { use std::sync::Arc; let x = Arc::new("hello".to_owned()); let x_ptr = Arc::into_raw(x); assert_eq!(unsafe { &* x_ptr }, "hello"); drop(unsafe { Arc::from_raw(x_ptr) }); }