mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 04:57:19 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			304 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			304 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::fmt::Debug;
 | |
| 
 | |
| fn foo(x: impl Debug, y: impl Debug) -> String {
 | |
|     let mut a = x;
 | |
|     a = y; //~ ERROR mismatched
 | |
|     format!("{:?}", a)
 | |
| }
 | |
| 
 | |
| trait S<T> {}
 | |
| 
 | |
| fn much_universe<T: S<impl Debug>, U: IntoIterator<Item = impl Iterator<Item = impl Clone>>>(
 | |
|     _: impl Debug + Clone,
 | |
| ) {
 | |
| }
 | |
| 
 | |
| fn main() {}
 | 
