]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/class-dtor.rs
switch Drop to `&mut self`
[rust.git] / src / test / run-pass / class-dtor.rs
index c294670faa3d9591f605b283eee9f5921bcb429f..8ee382eaa38f949435cd99ce8b57a21a85c96acc 100644 (file)
@@ -14,7 +14,7 @@ struct cat {
 }
 
 impl Drop for cat {
-    fn drop(&self) {
+    fn drop(&mut self) {
         (self.done)(self.meows);
     }
 }