]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/bind-by-move-neither-can-live-while-the-other-survives-1.rs
Change finalize -> drop.
[rust.git] / src / test / compile-fail / bind-by-move-neither-can-live-while-the-other-survives-1.rs
index e9bc4a5e195d795b740f5777d86d8abd6e359baf..6353d7c6581b175ebfc2f3321777c983acc76c50 100644 (file)
@@ -11,7 +11,7 @@
 struct X { x: () }
 
 impl Drop for X {
-    fn finalize(&self) {
+    fn drop(&self) {
         error!("destructor runs");
     }
 }