]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/no_share-struct.rs
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / compile-fail / no_share-struct.rs
index d64d37a2f6c33785e120c424f50aa99129622186..34e43e9f2aaec232d71b48a953806fb13bf73dfd 100644 (file)
@@ -20,5 +20,5 @@ fn bar<T: Sync>(_: T) {}
 fn main() {
     let x = Foo { a: 5 };
     bar(x);
-    //~^ ERROR `Foo: std::marker::Sync` is not satisfied
+    //~^ ERROR `Foo` cannot be shared between threads safely [E0277]
 }