mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			255 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			255 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ check-pass
 | 
						|
// https://github.com/rust-lang/rust/issues/102154
 | 
						|
 | 
						|
trait A<Y, N> {
 | 
						|
    type B;
 | 
						|
}
 | 
						|
type MaybeBox<T> = <T as A<T, Box<T>>>::B;
 | 
						|
struct P {
 | 
						|
    t: MaybeBox<P>
 | 
						|
}
 | 
						|
impl<Y, N> A<Y, N> for P {
 | 
						|
    type B = N;
 | 
						|
}
 | 
						|
fn main() {
 | 
						|
    let t: MaybeBox<P>;
 | 
						|
}
 |