mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			219 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| struct Point { x: isize, y: isize }
 | |
| struct Empty;
 | |
| 
 | |
| fn main() {
 | |
|     let origin = Point { x: 0, y: 0 };
 | |
|     origin.0;
 | |
|     //~^ ERROR no field `0` on type `Point`
 | |
|     Empty.0;
 | |
|     //~^ ERROR no field `0` on type `Empty`
 | |
| }
 | 
