]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-fail/morestack4.rs
switch Drop to `&mut self`
[rust.git] / src / test / run-fail / morestack4.rs
index b6fe25bc7a2ed1e8fac1be8368462cf1c3f8b4ee..02a65e91d04456e0890d25a7f2f08f6bd3bcb0cd 100644 (file)
@@ -31,7 +31,7 @@ struct and_then_get_big_again {
 }
 
 impl Drop for and_then_get_big_again {
-    fn drop(&self) {}
+    fn drop(&mut self) {}
 }
 
 fn and_then_get_big_again(x:int) -> and_then_get_big_again {