about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/sync-send-atomics.rs
blob: fc7f3971e760039ad49cc3e236a84c06bf60a3b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ check-pass


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() {}