about summary refs log tree commit diff
path: root/src/test/compile-fail/std-uncopyable-atomics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/std-uncopyable-atomics.rs')
-rw-r--r--src/test/compile-fail/std-uncopyable-atomics.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/compile-fail/std-uncopyable-atomics.rs b/src/test/compile-fail/std-uncopyable-atomics.rs
index 5ebabc2e354..f27fa6470a6 100644
--- a/src/test/compile-fail/std-uncopyable-atomics.rs
+++ b/src/test/compile-fail/std-uncopyable-atomics.rs
@@ -16,11 +16,11 @@ use std::ptr;
 
 fn main() {
     let x = ATOMIC_BOOL_INIT;
-    let x = *&x; //~ ERROR: cannot move out of dereference
+    let x = *&x; //~ ERROR: cannot move out of borrowed content
     let x = ATOMIC_INT_INIT;
-    let x = *&x; //~ ERROR: cannot move out of dereference
+    let x = *&x; //~ ERROR: cannot move out of borrowed content
     let x = ATOMIC_UINT_INIT;
-    let x = *&x; //~ ERROR: cannot move out of dereference
-    let x: AtomicPtr<uint> = AtomicPtr::new(ptr::null_mut());
-    let x = *&x; //~ ERROR: cannot move out of dereference
+    let x = *&x; //~ ERROR: cannot move out of borrowed content
+    let x: AtomicPtr<usize> = AtomicPtr::new(ptr::null_mut());
+    let x = *&x; //~ ERROR: cannot move out of borrowed content
 }