mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-04 07:45:17 +00:00
17 lines
369 B
Rust
17 lines
369 B
Rust
//@ 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>();
|
|
}
|