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