mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			327 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			327 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub trait SomeTrait {}
 | |
| pub trait OtherThingxxxxxxxx {}
 | |
| 
 | |
| pub fn alef<T: OtherThingxxxxxxxx>() -> Result<T, ()> {
 | |
|     loop {}
 | |
| }
 | |
| pub fn bet<T: SomeTrait>() -> Result<T, ()> {
 | |
|     loop {}
 | |
| }
 | |
| 
 | |
| pub fn alpha<T: OtherThingxxxxxxxx>(_param: Result<T, ()>) {
 | |
|     loop {}
 | |
| }
 | |
| pub fn beta<T: SomeTrait>(_param: Result<T, ()>) {
 | |
|     loop {}
 | |
| }
 | 
