#![allow(unused_variables)] fn main() { use std::rc::Rc; use std::borrow::Cow; let cow: Cow<'_, str> = Cow::Borrowed("eggplant"); let shared: Rc = Rc::from(cow); assert_eq!("eggplant", & shared[..]); }