mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			338 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			338 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // issue: rust-lang/rust#98250
 | |
| //@ check-pass
 | |
| 
 | |
| #![feature(type_alias_impl_trait)]
 | |
| 
 | |
| mod foo {
 | |
|     pub type Foo = impl PartialEq<(Foo, i32)>;
 | |
| 
 | |
|     fn foo() -> Foo {
 | |
|         super::Bar
 | |
|     }
 | |
| }
 | |
| use foo::Foo;
 | |
| 
 | |
| struct Bar;
 | |
| 
 | |
| impl PartialEq<(Foo, i32)> for Bar {
 | |
|     fn eq(&self, _other: &(Foo, i32)) -> bool {
 | |
|         true
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
