]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/newtype-struct-with-dtor.rs
Change finalize -> drop.
[rust.git] / src / test / run-pass / newtype-struct-with-dtor.rs
index 0e36f27aa9292d6d2d3ade9cfe9817c8110586e3..6062f3075e2024c197dd2a79240c9871fd291049 100644 (file)
@@ -4,7 +4,7 @@
 pub struct Fd(c_int);
 
 impl Drop for Fd {
-    fn finalize(&self) {
+    fn drop(&self) {
         unsafe {
             libc::close(**self);
         }