mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // Ensure that we forbid parenthesized use-bounds. In the future we might want
 | |
| // to lift this restriction but for now they bear no use whatsoever.
 | |
| 
 | |
| fn f() -> impl Sized + (use<>) {}
 | |
| //~^ ERROR precise capturing lists may not be parenthesized
 | |
| //~| HELP remove the parentheses
 | |
| 
 | |
| fn main() {}
 | 
