4 use std::sync::atomic::*;
8 let x = AtomicBool::new(false);
9 let x = *&x; //~ ERROR: cannot move out of a shared reference
10 let x = AtomicIsize::new(0);
11 let x = *&x; //~ ERROR: cannot move out of a shared reference
12 let x = AtomicUsize::new(0);
13 let x = *&x; //~ ERROR: cannot move out of a shared reference
14 let x: AtomicPtr<usize> = AtomicPtr::new(ptr::null_mut());
15 let x = *&x; //~ ERROR: cannot move out of a shared reference