mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			266 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![feature(type_alias_impl_trait)]
 | |
| 
 | |
| trait MyTrait {}
 | |
| impl MyTrait for i32 {}
 | |
| 
 | |
| // @hasraw impl_trait_alias/type.Foo.html 'Foo'
 | |
| /// debug type
 | |
| pub type Foo = impl MyTrait;
 | |
| 
 | |
| // @hasraw impl_trait_alias/fn.foo.html 'foo'
 | |
| /// debug function
 | |
| pub fn foo() -> Foo {
 | |
|     1
 | |
| }
 | 
