about summary refs log tree commit diff
path: root/tests/ui/threads-sendsync/std-sync-right-kind-impls.rs
blob: b2d22631c1a5eaa01b9caeeea0ef6ab0e6c35c6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ run-pass

use std::sync;

fn assert_both<T: Sync + Send>() {}

fn main() {
    assert_both::<sync::Mutex<()>>();
    assert_both::<sync::Condvar>();
    assert_both::<sync::RwLock<()>>();
    assert_both::<sync::Barrier>();
    assert_both::<sync::Arc<()>>();
    assert_both::<sync::Weak<()>>();
    assert_both::<sync::Once>();
}