blob: bc64c8162433b98d5d6219d8e38aef07b65fb8f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// run-pass
// pretty-expanded FIXME #23616
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>();
}
|