]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/repeat-to-run-dtor-twice.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / repeat-to-run-dtor-twice.rs
index 77146b65ae676b4ccc3773088d0d51c0d6593cdf..8fdf586b3d1de4ec3a88cefcc140ce102c79ec08 100644 (file)
@@ -24,5 +24,6 @@ fn drop(&mut self) {
 
 fn main() {
     let a = Foo { x: 3 };
-    let _ = [ a, ..5 ];     //~ ERROR copying a value of non-copyable type
+    let _ = [ a, ..5 ];
+    //~^ ERROR the trait `core::kinds::Copy` is not implemented for the type `Foo`
 }