mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			283 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub static FOO: u32 = FOO;
 | |
| //~^ ERROR encountered static that tried to access itself during initialization
 | |
| 
 | |
| #[derive(Copy, Clone)]
 | |
| pub union Foo {
 | |
|     x: u32,
 | |
| }
 | |
| 
 | |
| pub static BAR: Foo = BAR;
 | |
| //~^ ERROR encountered static that tried to access itself during initialization
 | |
| 
 | |
| fn main() {}
 | 
