struct Creature { name:String } impl Creature{ fn new(name:&str)->Creature { println!("{} oyuna başladı",name); Creature{name:name.into()} } } impl Drop for Creature { fn drop(&mut self) { println!("{} oyunda yok",self.name) } } fn drop_() { let mut ahmet:Creature; { let enes = Creature::new("Enes"); println!("Oyun sürüyor....."); ahmet=enes; println!("gözlemlendi."); } } fn main() { drop_(); }