]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/comm-not-freeze.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / comm-not-freeze.rs
index 2b85068d4708b4590a72086ba938caf039fd3422..b6277a3e2bd9863fbc9b07063826ef9809174145 100644 (file)
@@ -8,10 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-fn test<T: Freeze>() {}
+fn test<T: Sync>() {}
 
 fn main() {
-    test::<Chan<int>>();        //~ ERROR: does not fulfill `Freeze`
-    test::<Port<int>>();        //~ ERROR: does not fulfill `Freeze`
-    test::<SharedChan<int>>();  //~ ERROR: does not fulfill `Freeze`
+    test::<Sender<int>>();        //~ ERROR: `core::kinds::Sync` is not implemented
+    test::<Receiver<int>>();        //~ ERROR: `core::kinds::Sync` is not implemented
+    test::<Sender<int>>();  //~ ERROR: `core::kinds::Sync` is not implemented
 }