]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/kindck-copy.rs
fix cfail tests
[rust.git] / src / test / compile-fail / kindck-copy.rs
index 8868c7f8256da5b646386e049ae389a028c9de66..b5725249812f6ccd2edfb018b5d3fddbe9d62ded 100644 (file)
@@ -57,9 +57,6 @@ fn test<'a,T,U:Copy>(_: &'a int) {
     // mutable object types are not ok
     assert_copy::<&'a mut (Dummy+Copy)>();  //~ ERROR `core::kinds::Copy` is not implemented
 
-    // closures are like an `&mut` object
-    assert_copy::<||>(); //~ ERROR `core::kinds::Copy` is not implemented
-
     // unsafe ptrs are ok
     assert_copy::<*const int>();
     assert_copy::<*const &'a mut int>();