summaryrefslogtreecommitdiffstats
path: root/tests/ui/threads-sendsync/sync-send-atomics.rs
blob: 0466f4f0e9ddc88926003e439b01038cd792877c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}