mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			368 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ known-bug: #118784
 | 
						|
//@ needs-rustc-debug-assertions
 | 
						|
 | 
						|
use std::collections::HashMap;
 | 
						|
 | 
						|
macro_rules! all_sync_send {
 | 
						|
    ($ctor:expr, $($iter:expr),+) => ({
 | 
						|
        $(
 | 
						|
            let mut x = $ctor;
 | 
						|
            is_sync(x.$iter());
 | 
						|
            let mut y = $ctor;
 | 
						|
            is_send(y.$iter());
 | 
						|
        )+
 | 
						|
    })
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    all_sync_send!(HashMap, HashMap);
 | 
						|
}
 |