mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			271 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			271 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_name = "foo"]
 | |
| 
 | |
| // @has 'foo/union.Union.html'
 | |
| // Checking that there is a whitespace after `:`.
 | |
| // @has - '//*[@id="structfield.a"]/code' 'a: u8'
 | |
| // @has - '//*[@id="structfield.b"]/code' 'b: u32'
 | |
| pub union Union {
 | |
|     pub a: u8,
 | |
|     /// tadam
 | |
|     pub b: u32,
 | |
| }
 | 
