mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			228 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Issue #50636
 | |
| //@ run-rustfix
 | |
| 
 | |
| pub struct S {
 | |
|     pub foo: u32 //~ ERROR expected `,`, or `}`, found keyword `pub`
 | |
|     //     ~^ HELP try adding a comma: ','
 | |
|     pub bar: u32
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let _ = S { foo: 5, bar: 6 };
 | |
| }
 | 
