struct NewType(String); impl Drop for NewType { fn drop(&mut self) { println!("{}", self.0) } } fn main() { let x = NewType("abc".to_string()); ...
確定! 回上一頁