]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/vec-res-add.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / vec-res-add.rs
index 2d59e490e0d7b21140dd38952cee9fb96c1f1df7..bfd52d69cb217210472b6c66df1511e8877a1b6b 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern: failed to find an implementation
-
 struct r {
   i:int
 }
@@ -17,13 +15,15 @@ struct r {
 fn r(i:int) -> r { r { i: i } }
 
 impl Drop for r {
-    fn drop(&self) {}
+    fn drop(&mut self) {}
 }
 
 fn main() {
     // This can't make sense as it would copy the classes
-    let i = ~[r(0)];
-    let j = ~[r(1)];
+    let i = vec!(r(0));
+    let j = vec!(r(1));
     let k = i + j;
-    info!(j);
+    //~^ ERROR not implemented
+    println!("{}", j);
+    //~^ ERROR not implemented
 }