diff options
Diffstat (limited to 'tests/ui/threads-sendsync/sync-send-atomics.rs')
| -rw-r--r-- | tests/ui/threads-sendsync/sync-send-atomics.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/threads-sendsync/sync-send-atomics.rs b/tests/ui/threads-sendsync/sync-send-atomics.rs new file mode 100644 index 00000000000..0466f4f0e9d --- /dev/null +++ b/tests/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() {} |
