mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			235 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			235 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//@ aux-build:block-on.rs
 | 
						|
//@ edition:2021
 | 
						|
 | 
						|
extern crate block_on;
 | 
						|
 | 
						|
fn main() {
 | 
						|
    block_on::block_on(async {
 | 
						|
        let c = async |x| {};
 | 
						|
        c(1i32).await;
 | 
						|
        c(2usize).await;
 | 
						|
        //~^ ERROR mismatched types
 | 
						|
    });
 | 
						|
}
 |