mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			111 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			111 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| fn foo<T: ?Sized>(_f: impl AsRef<T>) {}
 | |
| 
 | |
| fn main() {
 | |
|     foo::<str, String>("".to_string()); //~ ERROR E0107
 | |
| }
 | 
