#![allow(unused_variables)] fn main() { use std::borrow::Cow; let s = "eggplant".to_string(); assert_eq!(Cow::from(& s), Cow::Borrowed("eggplant")); }