mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			650 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			650 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
struct A where (): Sized where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
fn b() where (): Sized where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
enum C where (): Sized where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
struct D where (): Sized, where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
fn e() where (): Sized, where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
enum F where (): Sized, where (): Sized {}
 | 
						|
//~^ ERROR cannot define duplicate `where` clauses on an item
 | 
						|
 | 
						|
fn main() {}
 |