]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/explicit-call-to-supertrait-dtor.rs
Change finalize -> drop.
[rust.git] / src / test / compile-fail / explicit-call-to-supertrait-dtor.rs
index 1a5eb696fa2e710e02afdd1e0e19caceb7a32af7..ace31183d76a0a1f14d31a3a68ba460c55359075 100644 (file)
@@ -17,14 +17,14 @@ trait Bar : Drop {
 }
 
 impl Drop for Foo {
-    fn finalize(&self) {
+    fn drop(&self) {
         println("kaboom");
     }
 }
 
 impl Bar for Foo {
     fn blah(&self) {
-        self.finalize();    //~ ERROR explicit call to destructor
+        self.drop();    //~ ERROR explicit call to destructor
     }
 }