about summary refs log tree commit diff
path: root/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-11-28 15:42:16 -0800
committerPatrick Walton <pcwalton@mimiga.net>2012-11-29 11:06:15 -0800
commit9e1c9be16f9140e09f26de947fddf806c27a957f (patch)
tree28510160831f6fe9d33336dd67234f4d3b91c841 /src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
parent5a282ec26fc7587b94e0d86a003abcf1cfd214c1 (diff)
downloadrust-9e1c9be16f9140e09f26de947fddf806c27a957f.tar.gz
rust-9e1c9be16f9140e09f26de947fddf806c27a957f.zip
librustc: Make the Drop trait use explicit self
Diffstat (limited to 'src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs')
-rw-r--r--src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs b/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
index 407b786016d..053a4075d2f 100644
--- a/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
+++ b/src/test/compile-fail/disallowed-deconstructing-destructing-struct.rs
@@ -3,7 +3,7 @@ struct X {
 }
 
 impl X : Drop {
-    fn finalize() {
+    fn finalize(&self) {
         error!("value: %s", self.x);
     }
 }