mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			420 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			420 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error: unnecessary parentheses around `match` scrutinee expression
 | 
						|
  --> $DIR/lint-struct-necessary.rs:15:11
 | 
						|
   |
 | 
						|
LL |     match (e) {
 | 
						|
   |           ^ ^
 | 
						|
   |
 | 
						|
note: the lint level is defined here
 | 
						|
  --> $DIR/lint-struct-necessary.rs:2:9
 | 
						|
   |
 | 
						|
LL | #![deny(unused_parens)]
 | 
						|
   |         ^^^^^^^^^^^^^
 | 
						|
help: remove these parentheses
 | 
						|
   |
 | 
						|
LL -     match (e) {
 | 
						|
LL +     match e {
 | 
						|
   |
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 |