about summary refs log tree commit diff
path: root/src/test/compile-fail/no_share-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/no_share-struct.rs')
-rw-r--r--src/test/compile-fail/no_share-struct.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/no_share-struct.rs b/src/test/compile-fail/no_share-struct.rs
index 7bb7d86e8d8..6b87a5fa09c 100644
--- a/src/test/compile-fail/no_share-struct.rs
+++ b/src/test/compile-fail/no_share-struct.rs
@@ -10,13 +10,13 @@
 
 use std::kinds::marker;
 
-struct Foo { a: int, m: marker::NoShare }
+struct Foo { a: int, m: marker::NoSync }
 
-fn bar<T: Share>(_: T) {}
+fn bar<T: Sync>(_: T) {}
 
 fn main() {
-    let x = Foo { a: 5, m: marker::NoShare };
+    let x = Foo { a: 5, m: marker::NoSync };
     bar(x);
     //~^ ERROR instantiating a type parameter with an incompatible type `Foo`,
-    //         which does not fulfill `Share`
+    //         which does not fulfill `Sync`
 }