mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			476 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: variable does not need to be mutable
 | 
						|
  --> $DIR/unused-mut-issue-50343.rs:7:33
 | 
						|
   |
 | 
						|
LL |     vec![(42, 22)].iter().map(|(mut x, _y)| ()).count();
 | 
						|
   |                                 ----^
 | 
						|
   |                                 |
 | 
						|
   |                                 help: remove this `mut`
 | 
						|
   |
 | 
						|
note: the lint level is defined here
 | 
						|
  --> $DIR/unused-mut-issue-50343.rs:3:9
 | 
						|
   |
 | 
						|
LL | #![deny(unused_mut)]
 | 
						|
   |         ^^^^^^^^^^
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |