#![allow(unused_variables)] fn main() { use std::borrow::Cow; let mut cow = Cow::Borrowed("foo"); cow.to_mut().make_ascii_uppercase(); assert_eq!(cow, Cow::Owned(String::from("FOO")) as Cow <'_, str >); }