mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			343 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			343 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// check-pass
 | 
						|
// #81395: Fix ICE when recursing into Deref target only differing in type args
 | 
						|
 | 
						|
pub struct Generic<T>(T);
 | 
						|
 | 
						|
impl<'a> std::ops::Deref for Generic<&'a mut ()> {
 | 
						|
    type Target = Generic<&'a ()>;
 | 
						|
    fn deref(&self) -> &Self::Target {
 | 
						|
        unimplemented!()
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
impl<'a> Generic<&'a ()> {
 | 
						|
    pub fn some_method(&self) {}
 | 
						|
}
 |