mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			216 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			216 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ check-pass
 | 
						|
 | 
						|
trait Trait {
 | 
						|
    type Type;
 | 
						|
 | 
						|
    fn method(&self) -> impl Trait<Type: '_>;
 | 
						|
}
 | 
						|
 | 
						|
impl Trait for () {
 | 
						|
    type Type = ();
 | 
						|
 | 
						|
    fn method(&self) -> impl Trait<Type: '_> {
 | 
						|
        ()
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
fn main() {}
 |