diff options
Diffstat (limited to 'src/test/ui/threads-sendsync/sync-send-atomics.rs')
-rw-r--r-- | src/test/ui/threads-sendsync/sync-send-atomics.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/threads-sendsync/sync-send-atomics.rs b/src/test/ui/threads-sendsync/sync-send-atomics.rs new file mode 100644 index 000000000..0466f4f0e --- /dev/null +++ b/src/test/ui/threads-sendsync/sync-send-atomics.rs @@ -0,0 +1,14 @@ +// run-pass + +// pretty-expanded FIXME #23616 + +use std::sync::atomic::*; + +trait SendSync: Send + Sync {} + +impl SendSync for AtomicBool {} +impl SendSync for AtomicIsize {} +impl SendSync for AtomicUsize {} +impl<T> SendSync for AtomicPtr<T> {} + +fn main() {} |