mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			303 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ check-fail
 | |
| //@ known-bug: #102682
 | |
| //@ edition: 2021
 | |
| 
 | |
| use std::fmt::Debug;
 | |
| use std::hash::Hash;
 | |
| 
 | |
| trait MyTrait<T, U> {
 | |
|     async fn foo(&self) -> &(T, U) where T: Debug + Sized, U: Hash;
 | |
| }
 | |
| 
 | |
| impl<T, U> MyTrait<T, U> for (T, U) {
 | |
|     async fn foo(&self) -> &(T, U) {
 | |
|         self
 | |
|     }
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
