mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 15:05:30 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			273 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			273 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#![feature(type_alias_impl_trait)]
 | 
						|
 | 
						|
pub trait Backend {}
 | 
						|
 | 
						|
impl Backend for () {}
 | 
						|
 | 
						|
pub struct Module<T>(T);
 | 
						|
 | 
						|
pub type BackendImpl = impl Backend;
 | 
						|
 | 
						|
// @has return_impl_trait/fn.make_module.html
 | 
						|
/// Documentation
 | 
						|
pub fn make_module() -> Module<BackendImpl> {
 | 
						|
    Module(())
 | 
						|
}
 |