pub trait Mirror { type Image; } impl Mirror for T { type Image = T; } pub fn poison(victim: String) where >::Image: Copy { loop { drop(victim); } } fn main() { let s = "Hello!".to_owned(); let mut s_copy = s; s_copy.push_str("World!"); "0wned!".to_owned(); println!("{}", s); //~ ERROR borrow of moved value }