mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			328 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			328 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| trait NewTrait : SomeNonExistentTrait {}
 | |
| //~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope
 | |
| 
 | |
| impl SomeNonExistentTrait for isize {}
 | |
| //~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope
 | |
| 
 | |
| fn f<T:SomeNonExistentTrait>() {}
 | |
| //~^ ERROR cannot find trait `SomeNonExistentTrait` in this scope
 | |
| 
 | |
| fn main() {}
 | 
