]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/closure-bounds-subtype.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / closure-bounds-subtype.rs
index fadaa84f19db535b6ef5096b9bc0d6dbc23f1aea..d3339c4845ab276b28b9794861486f2ca7233f56 100644 (file)
@@ -21,7 +21,7 @@ fn give_any<F>(f: F) where F: FnOnce() {
 
 fn give_owned<F>(f: F) where F: FnOnce() + Send {
     take_any(f);
-    take_const_owned(f); //~ ERROR the trait `core::marker::Sync` is not implemented for the type
+    take_const_owned(f); //~ ERROR `F: std::marker::Sync` is not satisfied
 }
 
 fn main() {}