mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			292 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			292 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| #![allow(unused_must_use)]
 | |
| #![allow(unused_mut)]
 | |
| //@ exec-env:RUST_LOG=debug
 | |
| //@ needs-threads
 | |
| 
 | |
| // regression test for issue #10405, make sure we don't call println! too soon.
 | |
| 
 | |
| use std::thread::Builder;
 | |
| 
 | |
| pub fn main() {
 | |
|     let mut t = Builder::new();
 | |
|     t.spawn(move || ());
 | |
| }
 | 
