]> git.lizzy.rs Git - rust.git/blob - src/test/ui/threads-sendsync/std-sync-right-kind-impls.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' into clippyup
[rust.git] / src / test / ui / threads-sendsync / std-sync-right-kind-impls.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 use std::sync;
5
6 fn assert_both<T: Sync + Send>() {}
7
8 fn main() {
9     assert_both::<sync::Mutex<()>>();
10     assert_both::<sync::Condvar>();
11     assert_both::<sync::RwLock<()>>();
12     assert_both::<sync::Barrier>();
13     assert_both::<sync::Arc<()>>();
14     assert_both::<sync::Weak<()>>();
15     assert_both::<sync::Once>();
16 }