2018-08-30 14:18:55 +02:00
|
|
|
//@ run-pass
|
2015-03-22 13:13:15 -07:00
|
|
|
//@ pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-20 12:00:26 -08:00
|
|
|
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>();
|
|
|
|
}
|