]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-move-out-of-tuple-struct-with-dtor.rs
switch Drop to `&mut self`
[rust.git] / src / test / compile-fail / borrowck-move-out-of-tuple-struct-with-dtor.rs
index 400a4f07951fc120480feb44822f252465edb123..1a0fc9e3b3b4d7eb6c4d8136c01c42a40cc915a2 100644 (file)
@@ -1,6 +1,6 @@
 struct S(~str);
 impl Drop for S {
-    fn drop(&self) { println(**self); }
+    fn drop(&mut self) { println(**self); }
 }
 
 fn move_in_match() {