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