mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			270 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			270 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Test the suggestion to wrap an or-pattern as a function parameter in parens.
 | |
| 
 | |
| //@ run-rustfix
 | |
| 
 | |
| #![allow(warnings)]
 | |
| 
 | |
| fn main() {}
 | |
| 
 | |
| enum E { A, B }
 | |
| use E::*;
 | |
| 
 | |
| #[cfg(false)]
 | |
| fn fun1(A | B: E) {} //~ ERROR function parameters require top-level or-patterns in parentheses
 | 
