mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			247 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			247 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// run-rustfix
 | 
						|
#![deny(unused_variables)]
 | 
						|
 | 
						|
struct Point {
 | 
						|
    x: u32,
 | 
						|
    y: u32
 | 
						|
}
 | 
						|
 | 
						|
fn process_point(Point { x, y: _renamed }: Point) {
 | 
						|
//~^ ERROR unused variable: `renamed`
 | 
						|
    let _ = x;
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    process_point(Point { x: 0, y: 0 });
 | 
						|
}
 |