]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/unwind-resource-fail.rs
Change finalize -> drop.
[rust.git] / src / test / run-fail / unwind-resource-fail.rs
index 486c2dd3b36aa2a1df0a9bee158d37d8650c9047..b4b0150013a509186fdb2eedd3891f2c7d935f4b 100644 (file)
@@ -15,7 +15,7 @@ struct r {
 }
 
 impl Drop for r {
-    fn finalize(&self) { fail!("squirrel") }
+    fn drop(&self) { fail!("squirrel") }
 }
 
 fn r(i: int) -> r { r { i: i } }