]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/kindck-copy.rs
Imported Upstream version 1.1.0+dfsg1
[rustc.git] / src / test / compile-fail / kindck-copy.rs
index d43ddff6b9500af1b7a8d0abcd056e7f9c418945..95ab2bbab14a3e7e2f8f48db73242a2d78e71dc6 100644 (file)
@@ -37,7 +37,7 @@ fn test<'a,T,U:Copy>(_: &'a isize) {
     assert_copy::<&'static mut isize>(); //~ ERROR `core::marker::Copy` is not implemented
     assert_copy::<&'a mut isize>();  //~ ERROR `core::marker::Copy` is not implemented
 
-    // ~ pointers are not ok
+    // owned pointers are not ok
     assert_copy::<Box<isize>>();   //~ ERROR `core::marker::Copy` is not implemented
     assert_copy::<String>();   //~ ERROR `core::marker::Copy` is not implemented
     assert_copy::<Vec<isize> >(); //~ ERROR `core::marker::Copy` is not implemented