mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // check that the local data keys are private by default.
 | |
| 
 | |
| mod bar {
 | |
|     thread_local!(static baz: f64 = 0.0);
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     bar::baz.with(|_| ());
 | |
|     //~^ ERROR `baz` is private
 | |
| }
 | 
