]> 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 e7441a2c9681800e59747f79b3e856ca19b93806..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
 }
@@ -22,8 +20,10 @@ 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
 }