mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			215 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			215 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ edition:2018
 | |
| 
 | |
| use std::io::Error;
 | |
| 
 | |
| fn make_unit() -> Result<(), Error> {
 | |
|     Ok(())
 | |
| }
 | |
| 
 | |
| fn main() {
 | |
|     let fut = async {
 | |
|         make_unit()?;
 | |
| 
 | |
|         Ok(())
 | |
|         //~^ ERROR type annotations needed
 | |
|     };
 | |
| }
 | 
