mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			257 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			257 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
trait TypedClient {
 | 
						|
    fn publish_typed<F>(&self) -> impl Sized
 | 
						|
    where
 | 
						|
        F: Clone;
 | 
						|
}
 | 
						|
impl TypedClient for () {
 | 
						|
    fn publish_typed<F>(&self) -> impl Sized {}
 | 
						|
}
 | 
						|
 | 
						|
fn main() {
 | 
						|
    ().publish_typed();
 | 
						|
    //~^ ERROR type annotations needed [E0283]
 | 
						|
}
 |