mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			336 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			336 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
error[E0282]: type annotations needed
 | 
						|
  --> $DIR/trait_upcasting_reference_mismatch.rs:7:35
 | 
						|
   |
 | 
						|
LL | fn hello() -> &'static (dyn Trait<impl Sized> + Send) {
 | 
						|
   |                                   ^^^^^^^^^^ cannot infer type
 | 
						|
 | 
						|
error: aborting due to 1 previous error
 | 
						|
 | 
						|
For more information about this error, try `rustc --explain E0282`.
 |