mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			235 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			235 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // run-pass
 | |
| #![allow(dead_code)]
 | |
| // pretty-expanded FIXME #23616
 | |
| 
 | |
| enum Foo {
 | |
|     Bar {
 | |
|         a: isize,
 | |
|         b: isize
 | |
|     },
 | |
|     Baz {
 | |
|         c: f64,
 | |
|         d: f64
 | |
|     }
 | |
| }
 | |
| 
 | |
| pub fn main() {
 | |
|     let _x = Foo::Bar { a: 2, b: 3 };
 | |
| }
 | 
