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