]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/no_share-struct.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / no_share-struct.rs
index 6b87a5fa09c98e4ca63873a0260bb5454bfe20f7..1379a9f7382b006678b007d268ecf93238a305eb 100644 (file)
@@ -17,6 +17,5 @@ fn bar<T: Sync>(_: T) {}
 fn main() {
     let x = Foo { a: 5, m: marker::NoSync };
     bar(x);
-    //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
-    //         which does not fulfill `Sync`
+    //~^ ERROR the trait `core::kinds::Sync` is not implemented
 }